# HG changeset patch # User Sebastien Jodogne # Date 1447058089 -3600 # Node ID bc05500ea317f111585eded306f2a3bc5577303f # Parent cb277a708b487d9f3c9f31db70db70aaf3106449 sync diff -r cb277a708b48 -r bc05500ea317 Orthanc/Core/Enumerations.cpp --- a/Orthanc/Core/Enumerations.cpp Thu Oct 29 15:03:26 2015 +0100 +++ b/Orthanc/Core/Enumerations.cpp Mon Nov 09 09:34:49 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 cb277a708b48 -r bc05500ea317 Orthanc/Core/Enumerations.h --- a/Orthanc/Core/Enumerations.h Thu Oct 29 15:03:26 2015 +0100 +++ b/Orthanc/Core/Enumerations.h Mon Nov 09 09:34:49 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 cb277a708b48 -r bc05500ea317 Orthanc/Core/Toolbox.cpp --- a/Orthanc/Core/Toolbox.cpp Thu Oct 29 15:03:26 2015 +0100 +++ b/Orthanc/Core/Toolbox.cpp Mon Nov 09 09:34:49 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); }