]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - error.h
Implement mailbox output format for ls.
[paraslash.git] / error.h
diff --git a/error.h b/error.h
index ac8366dd45564a0e044b565a8137343128c494f7..b7b66c697e5c7bdb63197845892147083d3049ce 100644 (file)
--- a/error.h
+++ b/error.h
@@ -153,7 +153,7 @@ extern const char **para_errlist[];
        PARA_ERROR(BAD_TABLE_NAME, "invalid table"), \
        PARA_ERROR(INPUT_TOO_LARGE, "input too large for stdin command"), \
        PARA_ERROR(READ, "read error"), \
-       PARA_ERROR(ATOL, "failed to convert to long"), \
+       PARA_ERROR(AFS_SYNTAX, "afs syntax error"), \
 
 
 #define MOOD_ERRORS \
@@ -172,15 +172,15 @@ extern const char **para_errlist[];
        PARA_ERROR(NO_ATTRIBUTES, "no attributes defined yet"), \
 
 #define BLOB_ERRORS \
-       PARA_ERROR(BLOB_SYNTAX, "fixme"), \
-       PARA_ERROR(DUMMY_ROW, "fixme"), \
+       PARA_ERROR(BLOB_SYNTAX, "blob syntax error"), \
+       PARA_ERROR(DUMMY_ROW, "attempted to access blob dummy object"), \
 
 
 #define PLAYLIST_ERRORS \
-       PARA_ERROR(PLAYLIST_SYNTAX, "fixme"), \
-       PARA_ERROR(NO_PLAYLIST, "fixme"), \
-       PARA_ERROR(PLAYLIST_LOADED, "fixme"), \
-       PARA_ERROR(PLAYLIST_EMPTY, "fixme"), \
+       PARA_ERROR(PLAYLIST_SYNTAX, "playlist syntax error"), \
+       PARA_ERROR(NO_PLAYLIST, "no valid playlist found"), \
+       PARA_ERROR(PLAYLIST_LOADED, ""), /* not really an error */ \
+       PARA_ERROR(PLAYLIST_EMPTY, "attempted to load empty playlist"), \
 
 
 #define AFT_ERRORS \
@@ -348,6 +348,10 @@ extern const char **para_errlist[];
 #define STRING_ERRORS \
        PARA_ERROR(MKSTEMP, "mkstemp error: unable to create tmp file"), \
        PARA_ERROR(FCHMOD, "fchmod error: can not set mode"), \
+       PARA_ERROR(ATOI_OVERFLOW, "value too large"), \
+       PARA_ERROR(STRTOLL, "unknown strtoll error"), \
+       PARA_ERROR(ATOI_NO_DIGITS, "no digits found in string"), \
+       PARA_ERROR(ATOI_JUNK_AT_END, "further characters after number"), \
 
 
 #define EXEC_ERRORS \