]> git.sesse.net Git - nageru/blobdiff - nageru/image_input.cpp
On errors, abort() instead of exit(1); exit() in a multithreaded program just gives...
[nageru] / nageru / image_input.cpp
index 4b6840b1327508a2027364fcd196a6924a1a8252..08ef3b9468bf20582d6b5cbc744dfbc5216dbb09 100644 (file)
@@ -47,7 +47,7 @@ ImageInput::ImageInput(const string &filename)
 {
        if (current_image == nullptr) {  // Could happen even though search_for_file() returned.
                fprintf(stderr, "Couldn't load image, exiting.\n");
-               exit(1);
+               abort();
        }
        set_width(current_image->width);
        set_height(current_image->height);