From 290b5964ef857ea52d85edf846edd82392d9a716 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 12 Sep 2012 20:46:15 +0200 Subject: print imlib2 error strings when save failed --- src/thumbnail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/thumbnail.c') diff --git a/src/thumbnail.c b/src/thumbnail.c index c622b07..fbe2ce0 100644 --- a/src/thumbnail.c +++ b/src/thumbnail.c @@ -384,7 +384,7 @@ void init_thumbnail_mode(void) strncpy(output_buf, opt.output_file, 1024); ungib_imlib_save_image_with_error_return(td.im_main, output_buf, &err); if (err) { - weprintf("Cannot save image to %s", output_buf); + feh_imlib_print_load_error(output_buf, td.im_main, err); } else if (opt.verbose) { int tw, th; -- cgit v1.2.3