From 7b53504a419b11dbb76539352c855378665bff68 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 14 Mar 2009 14:33:19 +0100 Subject: command: handle the addToPlaylist() result properly addToPlaylist() has a "enum playlist_result" return value. Convert that to "enum command_return" properly. --- src/command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/command.c b/src/command.c index 2c7f2b3d4..643473b17 100644 --- a/src/command.c +++ b/src/command.c @@ -562,7 +562,8 @@ handle_add(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) return COMMAND_RETURN_ERROR; } - return addToPlaylist(&g_playlist, uri, NULL); + result = addToPlaylist(&g_playlist, uri, NULL); + return print_playlist_result(client, result); } result = addAllIn(uri); -- cgit v1.2.3