diff options
Diffstat (limited to 'src/command/PlaylistCommands.cxx')
-rw-r--r-- | src/command/PlaylistCommands.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/command/PlaylistCommands.cxx b/src/command/PlaylistCommands.cxx index 9d870b021..516726500 100644 --- a/src/command/PlaylistCommands.cxx +++ b/src/command/PlaylistCommands.cxx @@ -61,8 +61,10 @@ print_spl_list(Client &client, const PlaylistVector &list) CommandResult handle_save(Client &client, ConstBuffer<const char *> args) { - PlaylistResult result = spl_save_playlist(args.front(), client.playlist); - return print_playlist_result(client, result); + Error error; + return spl_save_playlist(args.front(), client.playlist, error) + ? CommandResult::OK + : print_error(client, error); } CommandResult |