aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-03-18 19:45:59 +0100
committerMax Kellermann <max@duempel.org>2011-03-18 19:45:59 +0100
commit1fc571088bcd5023c9da7a635cff3aa534f73cf6 (patch)
treeb18cd3dd398cd43a4ad6bc22176ba37a9212d184 /src
parent8d83914f05cfa6d35c183ff40d5f2936a76667d4 (diff)
downloadmpd-1fc571088bcd5023c9da7a635cff3aa534f73cf6.tar.gz
mpd-1fc571088bcd5023c9da7a635cff3aa534f73cf6.tar.xz
mpd-1fc571088bcd5023c9da7a635cff3aa534f73cf6.zip
command: print playlist load error
Call print_playlist_result() instead of casting the enum implicitly.
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 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);