command/all: don't create new Response instance in exception handler

The new Response instance in the `catch` block didn't have the
`command` attribute set, so the error response didn't indicate which
command had failed, which however is required in the MPD protocol.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/628
This commit is contained in:
Max Kellermann
2019-08-20 20:31:36 +02:00
parent 9bff5f9e36
commit 6c9f9c136b
2 changed files with 26 additions and 23 deletions

2
NEWS
View File

@@ -6,6 +6,8 @@ ver 0.21.14 (not yet released)
* player
- fix crash after song change
- fix seek position after restarting the decoder
* protocol
- include command name in error responses
ver 0.21.13 (2019/08/06)
* input