Mercurial > hg > orthanc
diff Core/ImageFormats/ImageAccessor.cpp @ 1491:e460341872dc
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 04 Aug 2015 14:14:17 +0200 |
parents | f967bdf8534e |
children |
line wrap: on
line diff
--- a/Core/ImageFormats/ImageAccessor.cpp Tue Aug 04 14:04:48 2015 +0200 +++ b/Core/ImageFormats/ImageAccessor.cpp Tue Aug 04 14:14:17 2015 +0200 @@ -106,7 +106,10 @@ { if (readOnly_) { +#if ORTHANC_ENABLE_LOGGING == 1 LOG(ERROR) << "Trying to write on a read-only image"; +#endif + throw OrthancException(ErrorCode_ReadOnly); } @@ -131,7 +134,10 @@ { if (readOnly_) { +#if ORTHANC_ENABLE_LOGGING == 1 LOG(ERROR) << "Trying to write on a read-only image"; +#endif + throw OrthancException(ErrorCode_ReadOnly); }