diff Core/ImageFormats/ImageAccessor.cpp @ 861:a546b05a43da jpeg

fix PngWriter
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 07 Jun 2014 10:49:00 +0200
parents 80c7e53a69b5
children 87791ebc1f50
line wrap: on
line diff
--- a/Core/ImageFormats/ImageAccessor.cpp	Sat Jun 07 10:32:15 2014 +0200
+++ b/Core/ImageFormats/ImageAccessor.cpp	Sat Jun 07 10:49:00 2014 +0200
@@ -37,6 +37,7 @@
 
 #include <stdint.h>
 #include <cassert>
+#include <glog/logging.h>
 
 namespace Orthanc
 {
@@ -44,6 +45,7 @@
   {
     if (readOnly_)
     {
+      LOG(ERROR) << "Trying to write on a read-only image";
       throw OrthancException(ErrorCode_ReadOnly);
     }
 
@@ -68,6 +70,7 @@
   {
     if (readOnly_)
     {
+      LOG(ERROR) << "Trying to write on a read-only image";
       throw OrthancException(ErrorCode_ReadOnly);
     }