summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/util.c
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 /lib/libalpm/util.c
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 'lib/libalpm/util.c')
-rw-r--r--lib/libalpm/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index a80a7327..458f750a 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -621,7 +621,7 @@ char *_alpm_filecache_find(const char* filename)
}
}
/* package wasn't found in any cachedir */
- return(NULL);
+ RET_ERR(PM_ERR_PKG_NOT_FOUND, NULL);
}
/** Check the alpm cachedirs for existance and find a writable one.