aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-06 22:08:54 +0100
committerMax Kellermann <max@duempel.org>2012-03-06 22:08:54 +0100
commite9f1b53ae6819170ea06f4347a2c5c631044c1f3 (patch)
tree78bd59ae101103aed5b4ab6840fa128272cd8b44 /src/command.c
parent5016839b90274017696e0942f424d4f361d39ea2 (diff)
downloadmpd-e9f1b53ae6819170ea06f4347a2c5c631044c1f3.tar.gz
mpd-e9f1b53ae6819170ea06f4347a2c5c631044c1f3.tar.xz
mpd-e9f1b53ae6819170ea06f4347a2c5c631044c1f3.zip
command, ack: add ack_quark()
To pass ack values around.
Diffstat (limited to '')
-rw-r--r--src/command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c
index 4641f671b..655ed7b1a 100644
--- a/src/command.c
+++ b/src/command.c
@@ -183,6 +183,10 @@ print_error(struct client *client, GError *error)
enum playlist_result result = error->code;
g_error_free(error);
return print_playlist_result(client, result);
+ } else if (error->domain == ack_quark()) {
+ command_error(client, error->code, "%s", error->message);
+ g_error_free(error);
+ return COMMAND_RETURN_ERROR;
} else if (error->domain == db_quark()) {
switch ((enum db_error)error->code) {
case DB_DISABLED: