From db354f5e5375a36532e5691c0bb247361a3da18f Mon Sep 17 00:00:00 2001 From: naglis <827324+naglis@users.noreply.github.com> Date: Wed, 10 Jan 2024 21:01:31 +0200 Subject: [PATCH] doc/protocol.rst: update failure response example The commands in the example currently result in `ACK_ERROR_ARG`. --- doc/protocol.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/protocol.rst b/doc/protocol.rst index e070fdc54..5fca9496b 100644 --- a/doc/protocol.rst +++ b/doc/protocol.rst @@ -127,13 +127,13 @@ sent from the client to the server:: The server responds with:: - ACK [50@1] {play} song doesn't exist: "10240" + ACK [2@1] {play} Bad song index This tells us that the play command, which was the second in the list -(the first or only command is numbered 0), failed with error 50. The -number 50 translates to ``ACK_ERROR_NO_EXIST`` -- the song doesn't -exist. This is reiterated by the message text which also tells us -which song doesn't exist. +(the first or only command is numbered 0), failed with error 2. The +number 2 translates to ``ACK_ERROR_ARG`` -- the argument is invalid +since such song position does not exist. This is reiterated by the +message text which also tells us that the song index is incorrect. .. _command_lists: