changeset 3348:a1cd981a0f9a

more logs
author Alain Mazy <alain@mazy.be>
date Thu, 18 Apr 2019 15:52:25 +0200
parents af81263c025c
children ef18ea68a362
files Core/Images/ImageBuffer.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Core/Images/ImageBuffer.cpp	Thu Mar 28 10:55:13 2019 +0100
+++ b/Core/Images/ImageBuffer.cpp	Thu Apr 18 15:52:25 2019 +0200
@@ -66,7 +66,8 @@
         buffer_ = malloc(size);
         if (buffer_ == NULL)
         {
-          throw OrthancException(ErrorCode_NotEnoughMemory);
+          throw OrthancException(ErrorCode_NotEnoughMemory,
+                                 "Failed to allocate an image buffer of size " + boost::lexical_cast<std::string>(width_) + "x" + boost::lexical_cast<std::string>(height_));
         }
       }