summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-09-30 03:28:47 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-09-30 03:28:47 +0200
commitc012215477b91ace372bfe4131d16519024bc286 (patch)
tree32371d2c75a1c4be4ccf34d33bc8ff70214dc720
parentad1b17d8f170c499a441fe24924f994ccf0b7e74 (diff)
downloadfeh-c012215477b91ace372bfe4131d16519024bc286.zip
feh_file_info_load: do not display error when run with --quiet
-rw-r--r--src/filelist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/filelist.c b/src/filelist.c
index 23239f9..91b6b89 100644
--- a/src/filelist.c
+++ b/src/filelist.c
@@ -322,7 +322,8 @@ int feh_file_info_load(feh_file * file, Imlib_Image im)
if (im)
im1 = im;
else if (!feh_load_image(&im1, file) || !im1) {
- weprintf("couldn't load %s", file->filename);
+ if (!opt.quiet)
+ weprintf("couldn't load %s", file->filename);
return(1);
}