index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaron@archlinux.org> | 2006-10-15 19:31:03 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-10-15 19:31:03 +0000 |
commit | d37ad048732fbcef38aec001993553896dbe4198 (patch) | |
tree | c80472214aae0cd94c32ac00d613d38d51bc1adf /lib/libalpm/error.h | |
parent | 83381bd21748d79f46247fab17877bc5c440a8de (diff) |
-rw-r--r-- | lib/libalpm/error.h | 4 |
diff --git a/lib/libalpm/error.h b/lib/libalpm/error.h index 312c0c06..bee36076 100644 --- a/lib/libalpm/error.h +++ b/lib/libalpm/error.h @@ -21,7 +21,9 @@ #ifndef _ALPM_ERROR_H #define _ALPM_ERROR_H -#define RET_ERR(err, ret) do { pm_errno = (err); return(ret); } while(0) +#define RET_ERR(err, ret) do { pm_errno = (err); \ + _alpm_log(PM_LOG_ERROR, _("returning error %d: %s\n"), err, alpm_strerror(err)); \ + return(ret); } while(0) #endif /* _ALPM_ERROR_H */ |