]> granicus.if.org Git - imagemagick/blobdiff - magick/exception-private.h
(no commit message)
[imagemagick] / magick / exception-private.h
index 5b64870fdb50bfd124f29e97b709b6322af716ac..42ecb4c261b09806cc1658084cceb8f8a4f1e47d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization
+  Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization
   dedicated to making software imaging solutions freely available.
   
   You may not use this file except in compliance with the License.
@@ -38,7 +38,8 @@ extern "C" {
  \
   GetExceptionInfo(&exception); \
   (void) ThrowMagickException(&exception,GetMagickModule(),severity, \
-    tag == (const char *) NULL ? "unknown" : tag,"`%s'",strerror(errno)); \
+    tag == (const char *) NULL ? "unknown" : tag,"`%s'", \
+    GetExceptionMessage(errno)); \
   CatchException(&exception); \
   (void) DestroyExceptionInfo(&exception); \
   _exit(1); \
@@ -47,7 +48,7 @@ extern "C" {
 { \
   (void) ThrowMagickException(exception,GetMagickModule(),severity, \
     tag == (const char *) NULL ? "unknown" : tag,"`%s': %s",context, \
-    strerror(errno)); \
+    GetExceptionMessage(errno)); \
 }
 #define ThrowImageException(severity,tag) \
 { \