command: fix the "DENIED" ACK code

Use ACK_ERROR_PERMISSION instead of ACK_ERROR_NO_EXIST.
This commit is contained in:
Max Kellermann 2012-03-06 21:35:30 +01:00
parent d07a6edd2f
commit faf35e6082

View File

@ -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: