From f95be33f7fe4559d3d243f4f00d1669f1cb2fdc6 Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Tue, 11 Jan 2005 17:55:31 +0000 Subject: - now catching unknown exceptions as well as ImageMagick exceptions --- bitmap.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bitmap.c') diff --git a/bitmap.c b/bitmap.c index a75a407..fc5413c 100644 --- a/bitmap.c +++ b/bitmap.c @@ -1,5 +1,5 @@ /* - * $Id: bitmap.c,v 1.3 2004/12/28 01:54:02 lordjaxom Exp $ + * $Id: bitmap.c,v 1.4 2005/01/11 17:55:31 lordjaxom Exp $ */ #include "bitmap.h" @@ -230,6 +230,11 @@ bool cText2SkinBitmap::LoadMagick(const char *Filename, int height, int width, i esyslog("ERROR: text2skin: Couldn't load %s: %s", Filename, e.what()); delete bmp; return false; + } catch (...) { + if (!Quiet) + esyslog("ERROR: text2skin: Couldn't load %s: Unknown exception caught", Filename); + delete bmp; + return false; } return true; } -- cgit v1.2.3