# HG changeset patch # User Sebastien Jodogne # Date 1582715974 -3600 # Node ID efa815dd2c20077531c0eb976412096afced7de3 # Parent 356ebef2cd955bd4c9835c00537ec70ca1cb0618 additional logging diff -r 356ebef2cd95 -r efa815dd2c20 Core/SQLite/StatementReference.cpp --- a/Core/SQLite/StatementReference.cpp Wed Feb 26 12:15:29 2020 +0100 +++ b/Core/SQLite/StatementReference.cpp Wed Feb 26 12:19:34 2020 +0100 @@ -82,8 +82,12 @@ if (error != SQLITE_OK) { #if ORTHANC_SQLITE_STANDALONE != 1 - LOG(ERROR) << "SQLite: " << sqlite3_errmsg(database) - << " (" << sqlite3_extended_errcode(database) << ")"; + int extended = sqlite3_extended_errcode(database); + LOG(ERROR) << "SQLite: " << sqlite3_errmsg(database) << " (" << extended << ")"; + if (extended == SQLITE_IOERR_SHMSIZE /* 4874 */) + { + LOG(ERROR) << " This probably indicates that your filesystem is full"; + } #endif throw OrthancSQLiteException(ErrorCode_SQLitePrepareStatement); diff -r 356ebef2cd95 -r efa815dd2c20 OrthancServer/ServerIndex.cpp --- a/OrthancServer/ServerIndex.cpp Wed Feb 26 12:15:29 2020 +0100 +++ b/OrthancServer/ServerIndex.cpp Wed Feb 26 12:19:34 2020 +0100 @@ -507,7 +507,7 @@ } catch (OrthancException&) { - LOG(ERROR) << "Cannot flush the SQLite database to the disk (is disk full?)"; + LOG(ERROR) << "Cannot flush the SQLite database to the disk (is your filesystem full?)"; } count = 0;