diff Orthanc/Core/SQLite/StatementReference.cpp @ 128:e8cfda4c8a2f

Sync + support of JPEG2000 lossless images with YBR_RCT photometric interpretation
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 15 Apr 2016 21:44:03 +0200
parents 3809121c3290
children
line wrap: on
line diff
--- a/Orthanc/Core/SQLite/StatementReference.cpp	Fri Mar 25 17:38:34 2016 +0100
+++ b/Orthanc/Core/SQLite/StatementReference.cpp	Fri Apr 15 21:44:03 2016 +0200
@@ -82,7 +82,8 @@
       if (error != SQLITE_OK)
       {
 #if ORTHANC_SQLITE_STANDALONE != 1
-        LOG(ERROR) << "SQLite: " << sqlite3_errmsg(database);
+        LOG(ERROR) << "SQLite: " << sqlite3_errmsg(database)
+                   << " (" << sqlite3_extended_errcode(database) << ")";
 #endif
 
         throw OrthancSQLiteException(ErrorCode_SQLitePrepareStatement);