diff --git a/platform/default/image.cpp b/platform/default/image.cpp index bc9e72006..5922d6033 100644 --- a/platform/default/image.cpp +++ b/platform/default/image.cpp @@ -85,12 +85,19 @@ Image::Image(std::string const& data) } catch (image_reader_exception const& ex) { - fprintf(stderr, "ImageReader: %s\n", ex.what()); + fprintf(stderr, "Image: %s\n", ex.what()); img.reset(); width = 0; height = 0; } + catch (...) // catch the rest + { + fprintf(stderr, "Image: exception in constructor"); + img.reset(); + width = 0; + height = 0; + } } }