# HG changeset patch # User Sebastien Jodogne # Date 1447058295 -3600 # Node ID 3cc0c30da5ead90e051b61299b4ff5e72415fbff # Parent c735628b9ae72378fe2643fe9d0d6bc6a523ddf6 sync diff -r c735628b9ae7 -r 3cc0c30da5ea Orthanc/Core/Enumerations.cpp --- a/Orthanc/Core/Enumerations.cpp Thu Oct 29 15:06:44 2015 +0100 +++ b/Orthanc/Core/Enumerations.cpp Mon Nov 09 09:38:15 2015 +0100 @@ -148,6 +148,9 @@ case ErrorCode_StorageAreaPlugin: return "Error in the plugin implementing a custom storage area"; + case ErrorCode_EmptyRequest: + return "The request is empty"; + case ErrorCode_SQLiteNotOpened: return "SQLite: The database is not opened"; diff -r c735628b9ae7 -r 3cc0c30da5ea Orthanc/Core/Enumerations.h --- a/Orthanc/Core/Enumerations.h Thu Oct 29 15:06:44 2015 +0100 +++ b/Orthanc/Core/Enumerations.h Mon Nov 09 09:38:15 2015 +0100 @@ -79,6 +79,7 @@ ErrorCode_BadFont = 30 /*!< Badly formatted font file */, ErrorCode_DatabasePlugin = 31 /*!< The plugin implementing a custom database back-end does not fulfill the proper interface */, ErrorCode_StorageAreaPlugin = 32 /*!< Error in the plugin implementing a custom storage area */, + ErrorCode_EmptyRequest = 33 /*!< The request is empty */, ErrorCode_SQLiteNotOpened = 1000 /*!< SQLite: The database is not opened */, ErrorCode_SQLiteAlreadyOpened = 1001 /*!< SQLite: Connection is already open */, ErrorCode_SQLiteCannotOpen = 1002 /*!< SQLite: Unable to open the database */, diff -r c735628b9ae7 -r 3cc0c30da5ea Orthanc/Core/Toolbox.cpp --- a/Orthanc/Core/Toolbox.cpp Thu Oct 29 15:06:44 2015 +0100 +++ b/Orthanc/Core/Toolbox.cpp Mon Nov 09 09:38:15 2015 +0100 @@ -210,7 +210,7 @@ { if (!boost::filesystem::is_regular_file(path)) { - LOG(ERROR) << "The path does not point to a regular file: " << path; + LOG(ERROR) << std::string("The path does not point to a regular file: ") << path; throw OrthancException(ErrorCode_RegularFileExpected); }