command: print playlist load error

Call print_playlist_result() instead of casting the enum implicitly.
This commit is contained in:
Max Kellermann 2011-03-18 19:45:59 +01:00
parent 8d83914f05
commit 1fc571088b
1 changed files with 1 additions and 1 deletions

View File

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