diff options
author | Max Kellermann <max@duempel.org> | 2008-10-15 22:35:04 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-15 22:35:04 +0200 |
commit | 0b44cad2ce2c6433f395650a5a70cf8b3473673c (patch) | |
tree | 9d38f905e046e96af910dd54a1400ee80876026e | |
parent | 961a349f15393f9530343a9b3fe197513a654a82 (diff) | |
download | mpd-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 '')
-rw-r--r-- | src/command.c | 2 |
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; |