summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/windows/winmain.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/apps/windows/winmain.c b/apps/windows/winmain.c
index f278b199..6f133d3d 100644
--- a/apps/windows/winmain.c
+++ b/apps/windows/winmain.c
@@ -109,18 +109,8 @@ void winwarn(pdfapp_t *app, char *msg)
void winerror(pdfapp_t *app, fz_error error)
{
- char msg[4096];
- char buf[200];
-
- msg[0] = 0;
-
- while (error)
- {
- sprintf(buf, "%d\n", error);
- strcat(msg, buf);
- }
-
- MessageBoxA(hwndframe, msg, "MuPDF: Error", MB_ICONERROR);
+ fz_catch(error, "display error message to user");
+ MessageBoxA(hwndframe, "An error has occurred.", "MuPDF: Error", MB_ICONERROR);
exit(1);
}