From 30bb969ace21b86a8e41de7d30e9d39d86271ed5 Mon Sep 17 00:00:00 2001 From: Pang Yan Han Date: Fri, 4 Feb 2011 23:34:16 +0800 Subject: 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 Signed-off-by: Dan McGee --- lib/libalpm/error.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libalpm') 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 */ -- cgit v1.2.3-70-g09d2