promote the "could not load image" message from debug to normal

pull/1/head
Michael Stapelberg 2012-09-26 11:21:48 +02:00
parent 1e55f0dc6f
commit 603c90e985
1 changed files with 2 additions and 3 deletions

View File

@ -692,9 +692,8 @@ int main(int argc, char *argv[]) {
img = cairo_image_surface_create_from_png(image_path);
/* In case loading failed, we just pretend no -i was specified. */
if (cairo_surface_status(img) != CAIRO_STATUS_SUCCESS) {
if (debug_mode)
fprintf(stderr, "Could not load image \"%s\": cairo surface status %d\n",
image_path, cairo_surface_status(img));
fprintf(stderr, "Could not load image \"%s\": cairo surface status %d\n",
image_path, cairo_surface_status(img));
img = NULL;
}
}