Merge branch 'update-failure-response-example' of https://github.com/naglis/MPD

This commit is contained in:
Max Kellermann 2024-01-13 22:25:00 +01:00
commit 85bca660d1

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: