changeset 3349:ef18ea68a362

merge
author Alain Mazy <alain@mazy.be>
date Thu, 18 Apr 2019 15:52:56 +0200
parents a1cd981a0f9a (diff) ab17e8e94776 (current diff)
children ba051f674f4b 5069af20932a
files
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Core/Images/ImageBuffer.cpp	Thu Apr 18 15:00:29 2019 +0200
+++ b/Core/Images/ImageBuffer.cpp	Thu Apr 18 15:52:56 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_));
         }
       }