From 630d33b234dc116ca175c847abf4ca38e64d52fe Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Fri, 4 Jun 2004 02:51:54 +0000 Subject: finish ack error codes git-svn-id: https://svn.musicpd.org/mpd/trunk@1325 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/tables.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/tables.c') 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; } } -- cgit v1.2.3