diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-02-07 22:01:50 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-02-07 22:01:50 +0000 |
commit | 5aa51428150b880e694d039b171ee6f8a597dbd8 (patch) | |
tree | 3fc2e6bf2e7acef37ed6a9b548f98651b11f3ee7 /lib/libalpm/error.c | |
parent | c5aca9529f755aeeeba490ddab067679ce1ae61c (diff) | |
download | pacman-5aa51428150b880e694d039b171ee6f8a597dbd8.tar.xz |
error codes cleanup
Diffstat (limited to 'lib/libalpm/error.c')
-rw-r--r-- | lib/libalpm/error.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c index 54220e0b..1428ff35 100644 --- a/lib/libalpm/error.c +++ b/lib/libalpm/error.c @@ -55,6 +55,8 @@ char *alpm_strerror(int err) return "could not find database"; case PM_ERR_DB_WRITE: return "could not update database"; + case PM_ERR_DB_REMOVE: + return "could not remove database entry"; case PM_ERR_DB_UPTODATE: return "database is up to date"; /* Configuration */ @@ -71,14 +73,14 @@ char *alpm_strerror(int err) return "transaction already initialized"; case PM_ERR_TRANS_DUP_TARGET: return "duplicate target"; - case PM_ERR_TRANS_INITIALIZED: - return "transaction already initialized"; case PM_ERR_TRANS_NOT_INITIALIZED: return "transaction not initialized"; case PM_ERR_TRANS_NOT_PREPARED: return "transaction not prepared"; case PM_ERR_TRANS_ABORT: return "transaction aborted"; + case PM_ERR_TRANS_TYPE: + return "operation not compatible with the transaction type"; /* Packages */ case PM_ERR_PKG_NOT_FOUND: return "could not find or read package"; @@ -109,7 +111,6 @@ char *alpm_strerror(int err) return "user aborted"; case PM_ERR_INTERNAL_ERROR: return "internal error"; - case PM_ERR_XXX: default: return "unexpected error"; } |