From f9e0f0d25700c0674763def6134e18ef8a6a9da4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 24 Mar 2015 20:37:44 +0100 Subject: PlaylistSave: return bool/Error instead of PlaylistResult --- src/command/PlaylistCommands.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/command') 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 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 -- cgit v1.2.3