aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-15 22:35:04 +0200
committerMax Kellermann <max@duempel.org>2008-10-15 22:35:04 +0200
commit0b44cad2ce2c6433f395650a5a70cf8b3473673c (patch)
tree9d38f905e046e96af910dd54a1400ee80876026e /src
parent961a349f15393f9530343a9b3fe197513a654a82 (diff)
downloadmpd-0b44cad2ce2c6433f395650a5a70cf8b3473673c.tar.gz
mpd-0b44cad2ce2c6433f395650a5a70cf8b3473673c.tar.xz
mpd-0b44cad2ce2c6433f395650a5a70cf8b3473673c.zip
command: print error message on "addid" failure
Returning the playlist_result value from a command handler does not make sense. Call print_playlist_result() there, and forward its return value.
Diffstat (limited to 'src')
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 1037c812d..3174faf70 100644
--- a/src/command.c
+++ b/src/command.c
@@ -464,7 +464,7 @@ static int handleAddId(struct client *client,
enum playlist_result result = addToPlaylist(argv[1], &added_id);
if (result != PLAYLIST_RESULT_SUCCESS)
- return result;
+ return print_playlist_result(client, result);
if (argc == 3) {
int to;