diff options
author | Pang Yan Han <pangyanhan@gmail.com> | 2011-02-04 23:34:16 +0800 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-04 14:21:43 -0600 |
commit | 30bb969ace21b86a8e41de7d30e9d39d86271ed5 (patch) | |
tree | d6fa0aff5fa1c56e13cd7b9b14d50d80a9e27570 /lib/libalpm/error.c | |
parent | fafa909a2dd7efa2966f72e4ceae41dd1457f48c (diff) | |
download | pacman-30bb969ace21b86a8e41de7d30e9d39d86271ed5.tar.xz |
Handle PM_ERR_WRITE in alpm_strerror()
PM_ERR_WRITE is defined in alpm.h but not handled in
alpm_strerror(). This patch corrects that.
Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/error.c')
-rw-r--r-- | lib/libalpm/error.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c index 1b144a5a..2cc66851 100644 --- a/lib/libalpm/error.c +++ b/lib/libalpm/error.c @@ -135,6 +135,8 @@ const char SYMEXPORT *alpm_strerror(int err) /* Miscellaenous */ case PM_ERR_RETRIEVE: return _("failed to retrieve some files"); + case PM_ERR_WRITE: + return _("failed to copy some file"); case PM_ERR_INVALID_REGEX: return _("invalid regular expression"); /* Errors from external libraries- our own wrapper error */ |