diff options
author | Max Kellermann <max@duempel.org> | 2011-09-13 20:54:27 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-09-13 20:54:27 +0200 |
commit | b4430839a3413893a027f7a0fc5494af8198e1bb (patch) | |
tree | c35a7d8ba0c12b84b4b9af7385a989e15a27698b /src/command.c | |
parent | 412cf974a4cf3693cc643ab8ce0c1d733b7e8047 (diff) | |
download | mpd-b4430839a3413893a027f7a0fc5494af8198e1bb.tar.gz mpd-b4430839a3413893a027f7a0fc5494af8198e1bb.tar.xz mpd-b4430839a3413893a027f7a0fc5494af8198e1bb.zip |
database: generate GError when database is disabled
Diffstat (limited to '')
-rw-r--r-- | src/command.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c index 864b65354..ad13d75bc 100644 --- a/src/command.c +++ b/src/command.c @@ -395,6 +395,12 @@ print_error(struct client *client, GError *error) return print_playlist_result(client, result); } else if (error->domain == db_quark()) { switch ((enum db_error)error->code) { + case DB_DISABLED: + command_error(client, ACK_ERROR_NO_EXIST, "%s", + error->message); + g_error_free(error); + return COMMAND_RETURN_ERROR; + case DB_NOT_FOUND: g_error_free(error); command_error(client, ACK_ERROR_NO_EXIST, "Not found"); |