doc/protocol.rst: update failure response example

The commands in the example currently result in `ACK_ERROR_ARG`.
This commit is contained in:
naglis 2024-01-10 21:01:31 +02:00
parent d3335f9947
commit db354f5e53
1 changed files with 5 additions and 5 deletions

View File

@ -127,13 +127,13 @@ sent from the client to the server::
The server responds with:: 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 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 (the first or only command is numbered 0), failed with error 2. The
number 50 translates to ``ACK_ERROR_NO_EXIST`` -- the song doesn't number 2 translates to ``ACK_ERROR_ARG`` -- the argument is invalid
exist. This is reiterated by the message text which also tells us since such song position does not exist. This is reiterated by the
which song doesn't exist. message text which also tells us that the song index is incorrect.
.. _command_lists: .. _command_lists: