changeset 89:bc05500ea317

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Nov 2015 09:34:49 +0100
parents cb277a708b48
children a54260a7fe59
files Orthanc/Core/Enumerations.cpp Orthanc/Core/Enumerations.h Orthanc/Core/Toolbox.cpp
diffstat 3 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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";
 
--- 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 */,
--- 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);
     }