diff options
author | Max Kellermann <max@duempel.org> | 2015-03-24 20:37:44 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-03-24 22:03:17 +0100 |
commit | f9e0f0d25700c0674763def6134e18ef8a6a9da4 (patch) | |
tree | f4173a1ee624e9c7b1d78375fada4511c47cf632 /src/command | |
parent | 98f3135ad347fb39f941d03f5b8cadc6bc23f658 (diff) | |
download | mpd-f9e0f0d25700c0674763def6134e18ef8a6a9da4.tar.gz mpd-f9e0f0d25700c0674763def6134e18ef8a6a9da4.tar.xz mpd-f9e0f0d25700c0674763def6134e18ef8a6a9da4.zip |
PlaylistSave: return bool/Error instead of PlaylistResult
Diffstat (limited to '')
-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 |