diff Core/HttpServer/FilesystemHttpHandler.cpp @ 1582:bd1889029cbb

encoding of exceptions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 17:39:38 +0200
parents 3232f1c995a5
children b1291df2f780
line wrap: on
line diff
--- a/Core/HttpServer/FilesystemHttpHandler.cpp	Tue Aug 25 16:18:37 2015 +0200
+++ b/Core/HttpServer/FilesystemHttpHandler.cpp	Tue Aug 25 17:39:38 2015 +0200
@@ -119,7 +119,7 @@
     if (!fs::exists(pimpl_->root_) || 
         !fs::is_directory(pimpl_->root_))
     {
-      throw OrthancException("The path does not point to a directory");
+      throw OrthancException(ErrorCode_DirectoryExpected);
     }
   }