From 35c38a7ab419ea1b83e43b39d531ebb353f2d718 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 5 Apr 2015 12:54:14 +0000 Subject: [PATCH] com_add(): Return negative on errors --- aft.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aft.c b/aft.c index 6b5e0b74..8573c200 100644 --- a/aft.c +++ b/aft.c @@ -1735,9 +1735,9 @@ static int com_add_callback(int fd, const struct osl_object *query) afs_event(AUDIO_FILE_ADD, &msg, aft_row); out: if (ret < 0) - para_printf(&msg, "%s\n", para_strerror(-ret)); + para_printf(&msg, "could not add %s\n", path); flush_and_free_pb(&msg); - return 0; + return ret; } /** Used by com_add(). */ -- 2.39.5