Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1581:357c4bb15701 | 1582:bd1889029cbb |
---|---|
117 | 117 |
118 namespace fs = boost::filesystem; | 118 namespace fs = boost::filesystem; |
119 if (!fs::exists(pimpl_->root_) || | 119 if (!fs::exists(pimpl_->root_) || |
120 !fs::is_directory(pimpl_->root_)) | 120 !fs::is_directory(pimpl_->root_)) |
121 { | 121 { |
122 throw OrthancException("The path does not point to a directory"); | 122 throw OrthancException(ErrorCode_DirectoryExpected); |
123 } | 123 } |
124 } | 124 } |
125 | 125 |
126 | 126 |
127 bool FilesystemHttpHandler::Handle( | 127 bool FilesystemHttpHandler::Handle( |