From faf35e6082a8c685140820f334b5c4ecc9ce6666 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 6 Mar 2012 21:35:30 +0100 Subject: command: fix the "DENIED" ACK code Use ACK_ERROR_PERMISSION instead of ACK_ERROR_NO_EXIST. --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.c b/src/command.c index 2d6966509..ad64d9b8d 100644 --- a/src/command.c +++ b/src/command.c @@ -121,7 +121,7 @@ print_playlist_result(struct client *client, return COMMAND_RETURN_ERROR; case PLAYLIST_RESULT_DENIED: - command_error(client, ACK_ERROR_NO_EXIST, "Access denied"); + command_error(client, ACK_ERROR_PERMISSION, "Access denied"); return COMMAND_RETURN_ERROR; case PLAYLIST_RESULT_NO_SUCH_SONG: -- cgit v1.2.3