diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-06-19 18:31:47 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2013-06-19 19:14:46 +0200 |
commit | dcbd08de3397567a91023b4b6eb12f31ab1d4447 (patch) | |
tree | 63c1bdb8ed46ffb68a90acc32586a99e036c57ab | |
parent | d0b1c20e8d94ed3eabaa6ec07036edad8b32c92a (diff) | |
download | mupdf-dcbd08de3397567a91023b4b6eb12f31ab1d4447.tar.xz |
Fix exception handling changes in X11 app.
-rw-r--r-- | apps/x11_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/x11_main.c b/apps/x11_main.c index 270f15df..481adce1 100644 --- a/apps/x11_main.c +++ b/apps/x11_main.c @@ -173,7 +173,7 @@ static void winopen(void) xdpy = XOpenDisplay(NULL); if (!xdpy) - fz_throw(gapp.ctx, "cannot open display"); + fz_throw(gapp.ctx, FZ_ERROR_GENERIC, "cannot open display"); XA_CLIPBOARD = XInternAtom(xdpy, "CLIPBOARD", False); XA_TARGETS = XInternAtom(xdpy, "TARGETS", False); @@ -211,7 +211,7 @@ static void winopen(void) 0, NULL); if (xwin == None) - fz_throw(gapp.ctx, "cannot create window"); + fz_throw(gapp.ctx, FZ_ERROR_GENERIC, "cannot create window"); XSetWindowColormap(xdpy, xwin, ximage_get_colormap()); XSelectInput(xdpy, xwin, |