From dcbd08de3397567a91023b4b6eb12f31ab1d4447 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 19 Jun 2013 18:31:47 +0200 Subject: Fix exception handling changes in X11 app. --- apps/x11_main.c | 4 ++-- 1 file 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, -- cgit v1.2.3