]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - error.h
replace para_connect() by PARA_CONNECT.
[paraslash.git] / error.h
diff --git a/error.h b/error.h
index 8c113912bd25625ccd472325d1881fbcf52fea26..19f00d2113af4036def403ca3b24315910f93d0d 100644 (file)
--- a/error.h
+++ b/error.h
@@ -112,34 +112,34 @@ extern const char **para_errlist[];
        PARA_ERROR(NO_COMPARE_FUNC, "fixme"), \
        PARA_ERROR(NULL_OBJECT, "fixme"), \
        PARA_ERROR(BAD_DATA_SIZE, "fixme"), \
-       PARA_ERROR(NOT_MAPPED, "fixme"), \
-       PARA_ERROR(ALREADY_MAPPED, "fixme"), \
+       PARA_ERROR(NOT_MAPPED, "file not mapped"), \
+       PARA_ERROR(ALREADY_MAPPED, "file already mapped"), \
        PARA_ERROR(BAD_SIZE, "fixme"), \
        PARA_ERROR(TRUNC, "fixme"), \
        PARA_ERROR(UNLINK, "fixme"), \
-       PARA_ERROR(EXIST, "fixme"), \
-       PARA_ERROR(ISDIR, "fixme"), \
-       PARA_ERROR(NOTDIR, "fixme"), \
+       PARA_ERROR(EXIST, "file or directory already exists"), \
+       PARA_ERROR(ISDIR, "error: is a directory"), \
+       PARA_ERROR(NOTDIR, "error: not a directory"), \
        PARA_ERROR(NOENT, "fixme"), \
        PARA_ERROR(OSL_PERM, "fixme"), \
-       PARA_ERROR(BAD_TABLE, "fixme"), \
-       PARA_ERROR(BAD_TABLE_HEADER, "fixme"), \
-       PARA_ERROR(BAD_TABLE_DESC, "fixme"), \
-       PARA_ERROR(RB_KEY_EXISTS, "fixme"), \
-       PARA_ERROR(RB_KEY_NOT_FOUND, "fixme"), \
+       PARA_ERROR(BAD_TABLE, "table not open"), \
+       PARA_ERROR(BAD_TABLE_HEADER, "table header corruption"), \
+       PARA_ERROR(BAD_TABLE_DESC, "invalid table description"), \
+       PARA_ERROR(RB_KEY_EXISTS, "key already exists in rbtree"), \
+       PARA_ERROR(RB_KEY_NOT_FOUND, "key not found in rbtree"), \
        PARA_ERROR(BAD_ID, "fixme"), \
        PARA_ERROR(INDEX_CORRUPTION, "fixme"), \
        PARA_ERROR(BAD_OFFSET, "fixme"), \
        PARA_ERROR(INVALID_OBJECT, "fixme"), \
-       PARA_ERROR(MKDIR, "fixme"), \
-       PARA_ERROR(OPEN, "fixme"), \
-       PARA_ERROR(STAT, "fixme"), \
-       PARA_ERROR(FSTAT, "fixme"), \
+       PARA_ERROR(MKDIR, "failed to create directory"), \
+       PARA_ERROR(OPEN, "failed to open file"), \
+       PARA_ERROR(STAT, "can not stat file"), \
+       PARA_ERROR(FSTAT, "fstat error"), \
        PARA_ERROR(RENAME, "fixme"), \
-       PARA_ERROR(EMPTY, "fixme"), \
+       PARA_ERROR(EMPTY, "file empty"), \
        PARA_ERROR(NOSPC, "fixme"), \
-       PARA_ERROR(MMAP, "fixme"), \
-       PARA_ERROR(MUNMAP, "fixme"), \
+       PARA_ERROR(MMAP, "mmap error"), \
+       PARA_ERROR(MUNMAP, "munmap failed"), \
        PARA_ERROR(WRITE, "fixme"), \
        PARA_ERROR(LSEEK, "fixme"), \
        PARA_ERROR(BUSY, "fixme"), \
@@ -158,10 +158,10 @@ extern const char **para_errlist[];
 
 
 #define AFS_ERRORS \
-       PARA_ERROR(AFS_SYNTAX, "fixme"), \
-       PARA_ERROR(FORK, "fixme"), \
-       PARA_ERROR(BAD_TABLE_NAME, "fixme"), \
-       PARA_ERROR(INPUT_TOO_LARGE, "fixme"), \
+       PARA_ERROR(AFS_SYNTAX, "afs syntax error"), \
+       PARA_ERROR(FORK, "fork error"), \
+       PARA_ERROR(BAD_TABLE_NAME, "invalid table"), \
+       PARA_ERROR(INPUT_TOO_LARGE, "input too large for stdin command"), \
 
 
 #define MOOD_ERRORS \
@@ -194,17 +194,16 @@ extern const char **para_errlist[];
 
 
 #define AFT_ERRORS \
-       PARA_ERROR(BAD_AFS, "fixme"), \
+       PARA_ERROR(BAD_AFSI, "invaid afs info"), \
        PARA_ERROR(LOCALTIME, "fixme"), \
        PARA_ERROR(STRFTIME, "fixme"), \
-       PARA_ERROR(BAD_PATH, "fixme"), \
+       PARA_ERROR(BAD_PATH, "invalid path"), \
        PARA_ERROR(BAD_SORT, "fixme"), \
        PARA_ERROR(FNMATCH, "fixme"), \
-       PARA_ERROR(NO_MATCH, "fixme"), \
-       PARA_ERROR(NO_AFHI, "fixme"), \
-       PARA_ERROR(AFT_SYNTAX, "fixme"), \
-       PARA_ERROR(AFS_STAT, "fixme"), \
-       PARA_ERROR(HASH_MISMATCH, "fixme"), \
+       PARA_ERROR(NO_MATCH, "no matches"), \
+       PARA_ERROR(NO_AFHI, "audio format handler info required"), \
+       PARA_ERROR(AFT_SYNTAX, "audio file table syntax error"), \
+       PARA_ERROR(HASH_MISMATCH, "hash mismatch, consider re-add"), \
 
 
 #define USER_LIST_ERRORS \