summaryrefslogtreecommitdiff
path: root/libmediaart
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2014-11-10 13:27:05 +0100
committerJens Georg <mail@jensge.org>2015-05-15 20:50:32 +0200
commit1f6a4d9018529bee2a709bebb2ea7c24fa2bb477 (patch)
tree40b6d9fd72fac3a56c57065d36a8f047e753127f /libmediaart
parent2664fa72d671c6b15a4e1924272c29179d900025 (diff)
downloadlibmediaart-1f6a4d9018529bee2a709bebb2ea7c24fa2bb477.tar.gz
extract: Don't print confusing random strerror
debug was printing g_strerror(errno) even in success case, leaving weird confusing messages, indicating an error even if symlinking succeeded. https://bugzilla.gnome.org/show_bug.cgi?id=739873
Diffstat (limited to 'libmediaart')
-rw-r--r--libmediaart/extract.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmediaart/extract.c b/libmediaart/extract.c
index f5abeed..7647957 100644
--- a/libmediaart/extract.c
+++ b/libmediaart/extract.c
@@ -883,7 +883,7 @@ get_heuristic (MediaArtType type,
g_debug ("symlink('%s' --> '%s'), %s",
album_art_file_path,
target,
- g_strerror (errno));
+ !retval ? g_strerror (errno) : "no error given");
} else {
GFile *art_file;
GFile *target_file;
@@ -944,7 +944,7 @@ get_heuristic (MediaArtType type,
g_debug ("symlink('%s' --> '%s'), %s",
album_art_file_path, target,
- g_strerror (errno));
+ !retval ? g_strerror (errno) : "no error given");
}
g_object_unref (album_art_file);