diff OrthancServer/ServerIndex.cpp @ 1113:ba5c0908600c

Refactoring of HttpOutput ("Content-Length" header is now always sent)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Sep 2014 15:51:20 +0200
parents ce6386b37afd
children bf67431a7383
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Mon Sep 01 12:20:26 2014 +0200
+++ b/OrthancServer/ServerIndex.cpp	Tue Sep 02 15:51:20 2014 +0200
@@ -866,7 +866,7 @@
     ResourceType type;
     if (!db_->LookupResource(instanceUuid, id, type))
     {
-      throw OrthancException(ErrorCode_InternalError);
+      throw OrthancException(ErrorCode_UnknownResource);
     }
 
     if (db_->LookupAttachment(attachment, id, contentType))