1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-16 14:25:21 -05:00

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>
This commit is contained in:
Pang Yan Han 2011-02-04 23:34:16 +08:00 committed by Dan McGee
parent fafa909a2d
commit 30bb969ace

View File

@ -135,6 +135,8 @@ const char SYMEXPORT *alpm_strerror(int err)
/* Miscellaenous */ /* Miscellaenous */
case PM_ERR_RETRIEVE: case PM_ERR_RETRIEVE:
return _("failed to retrieve some files"); return _("failed to retrieve some files");
case PM_ERR_WRITE:
return _("failed to copy some file");
case PM_ERR_INVALID_REGEX: case PM_ERR_INVALID_REGEX:
return _("invalid regular expression"); return _("invalid regular expression");
/* Errors from external libraries- our own wrapper error */ /* Errors from external libraries- our own wrapper error */