From 1fc571088bcd5023c9da7a635cff3aa534f73cf6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 18 Mar 2011 19:45:59 +0100 Subject: [PATCH] command: print playlist load error Call print_playlist_result() instead of casting the enum implicitly. --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.c b/src/command.c index 781547b44..ce0aa97b7 100644 --- a/src/command.c +++ b/src/command.c @@ -749,7 +749,7 @@ handle_load(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) result = playlist_open_into_queue(argv[1], &g_playlist); if (result != PLAYLIST_RESULT_NO_SUCH_LIST) - return result; + return print_playlist_result(client, result); result = playlist_load_spl(&g_playlist, argv[1]); return print_playlist_result(client, result);