diff options
author | lordjaxom <lordjaxom> | 2005-01-11 17:55:31 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2005-01-11 17:55:31 +0000 |
commit | f95be33f7fe4559d3d243f4f00d1669f1cb2fdc6 (patch) | |
tree | 7a96852698913bb818ad8e06a38d5a45341dc2c8 | |
parent | 852450cea6cb421da53843824164a983172df104 (diff) | |
download | vdr-plugin-text2skin-f95be33f7fe4559d3d243f4f00d1669f1cb2fdc6.tar.gz vdr-plugin-text2skin-f95be33f7fe4559d3d243f4f00d1669f1cb2fdc6.tar.bz2 |
- now catching unknown exceptions as well as ImageMagick exceptions
-rw-r--r-- | bitmap.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; } |