diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-06-04 02:51:54 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-06-04 02:51:54 +0000 |
commit | 630d33b234dc116ca175c847abf4ca38e64d52fe (patch) | |
tree | 4929ccaf4efa5f1b82b13792d6cc3fe24420062b /src/tables.c | |
parent | f958e0a4c5bb7241b2ec443a402d10c29abfc08f (diff) | |
download | mpd-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.c | 8 |
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; } } |