diff --git a/MagickCore/display.c b/MagickCore/display.c index 555cbe6..150fb7a 100644 --- a/MagickCore/display.c +++ b/MagickCore/display.c
@@ -7209,8 +7209,14 @@ status=XSaveImage(display,resource_info,windows,*image,exception); if (status == MagickFalse) { - XNoticeWidget(display,windows,"Unable to write X image:", - (*image)->filename); + char + message[MaxTextExtent]; + + (void) FormatLocaleString(message,MaxTextExtent,"%s:%s", + exception->reason != (char *) NULL ? exception->reason : "", + exception->description != (char *) NULL ? exception->description : + ""); + XNoticeWidget(display,windows,"Unable to save file:",message); break; } break; @@ -7223,8 +7229,14 @@ status=XPrintImage(display,resource_info,windows,*image,exception); if (status == MagickFalse) { - XNoticeWidget(display,windows,"Unable to print X image:", - (*image)->filename); + char + message[MaxTextExtent]; + + (void) FormatLocaleString(message,MaxTextExtent,"%s:%s", + exception->reason != (char *) NULL ? exception->reason : "", + exception->description != (char *) NULL ? exception->description : + ""); + XNoticeWidget(display,windows,"Unable to print file:",message); break; } break;