summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-02-04 16:00:47 +0100
committerDan McGee <dan@archlinux.org>2011-02-04 16:00:47 +0100
commitc12ccbfb2c7aa907ba01339a1a29089c65ea9911 (patch)
tree62932e1bd76193bcc5e78b87f714b192c7668439 /src
parent7467fb9e763d9895044791eb0407e58d2793f377 (diff)
downloadpacman-c12ccbfb2c7aa907ba01339a1a29089c65ea9911.tar.gz
pacman-c12ccbfb2c7aa907ba01339a1a29089c65ea9911.tar.xz
Add more error checking and logging
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/upgrade.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pacman/upgrade.c b/src/pacman/upgrade.c
index 595e4aab..8cd29da0 100644
--- a/src/pacman/upgrade.c
+++ b/src/pacman/upgrade.c
@@ -55,6 +55,8 @@ int pacman_upgrade(alpm_list_t *targets)
if(strstr(i->data, "://")) {
char *str = alpm_fetch_pkgurl(i->data);
if(str == NULL) {
+ pm_fprintf(stderr, PM_LOG_ERROR, "'%s': %s\n",
+ (char *)i->data, alpm_strerrorlast());
return(1);
} else {
free(i->data);