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.
This commit is contained in:
Max Kellermann 2008-10-15 22:35:04 +02:00
parent 961a349f15
commit 0b44cad2ce
1 changed files with 1 additions and 1 deletions

View File

@ -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;