Mercurial > hg > orthanc
diff Core/SQLite/Connection.cpp @ 1958:c746e2d42ac8
extended error codes for SQLite
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 06 Apr 2016 14:41:26 +0200 |
parents | b1291df2f780 |
children | fa5ad4368fe3 |
line wrap: on
line diff
--- a/Core/SQLite/Connection.cpp Wed Apr 06 14:36:56 2016 +0200 +++ b/Core/SQLite/Connection.cpp Wed Apr 06 14:41:26 2016 +0200 @@ -163,7 +163,8 @@ if (error == SQLITE_ERROR) { #if ORTHANC_SQLITE_STANDALONE != 1 - LOG(ERROR) << "SQLite execute error: " << sqlite3_errmsg(db_); + LOG(ERROR) << "SQLite execute error: " << sqlite3_errmsg(db_) + << " (" << sqlite3_extended_errcode(db_) << ")"; #endif throw OrthancSQLiteException(ErrorCode_SQLiteExecute);