aboutsummaryrefslogtreecommitdiffstats
path: root/src/tables.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-04 02:51:54 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-04 02:51:54 +0000
commit630d33b234dc116ca175c847abf4ca38e64d52fe (patch)
tree4929ccaf4efa5f1b82b13792d6cc3fe24420062b /src/tables.c
parentf958e0a4c5bb7241b2ec443a402d10c29abfc08f (diff)
downloadmpd-630d33b234dc116ca175c847abf4ca38e64d52fe.tar.gz
mpd-630d33b234dc116ca175c847abf4ca38e64d52fe.tar.xz
mpd-630d33b234dc116ca175c847abf4ca38e64d52fe.zip
finish ack error codes
git-svn-id: https://svn.musicpd.org/mpd/trunk@1325 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/tables.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tables.c b/src/tables.c
index 0270319f4..a29f60163 100644
--- a/src/tables.c
+++ b/src/tables.c
@@ -172,7 +172,8 @@ int printAllAlbums(FILE * fp, char * artist) {
}
}
else {
- commandError(fp, "artist \"%s\" not found", artist);
+ commandError(fp, ACK_ERROR_NO_EXIST,
+ "artist \"%s\" not found", artist);
return -1;
}
}
@@ -183,7 +184,8 @@ int printAllAlbums(FILE * fp, char * artist) {
int printAllKeysOfTable(FILE * fp, char * table, char * arg1) {
if(strcmp(table,TABLES_ARTIST)==0) {
if(arg1!=NULL) {
- commandError(fp, "%s table takes no args", table);
+ commandError(fp, ACK_ERROR_ARG,
+ "%s table takes no args", table);
return -1;
}
return printAllArtists(fp);
@@ -192,7 +194,7 @@ int printAllKeysOfTable(FILE * fp, char * table, char * arg1) {
return printAllAlbums(fp,arg1);
}
else {
- commandError(fp, "table \"%s\" does not exist", table);
+ commandError(fp, ACK_ERROR_ARG, "unknown table", table);
return -1;
}
}