summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/alpm.h
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-01-15 21:38:16 +0100
committerDave Reisner <d@falconindy.com>2011-03-09 21:22:32 +0100
commit8a58648471e3a5311529955cd91c1a082be10056 (patch)
tree73ac218ceddd87de4264d38afa922bc2c493edb9 /lib/libalpm/alpm.h
parenta5b6a75787be01fc2a030b68eeaba07bc26db469 (diff)
downloadpacman-8a58648471e3a5311529955cd91c1a082be10056.tar.gz
pacman-8a58648471e3a5311529955cd91c1a082be10056.tar.xz
handle error case for PM_ERR_LIBCURL
Add PM_ERR_LIBCURL to error enum and handle case in error.c by returning curl_easy_strerror() based on the error number carried by the gloabl alpm handle. Signed-off-by: Dave Reisner <d@falconindy.com>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r--lib/libalpm/alpm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 0f3b7166..0b80506f 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -535,6 +535,7 @@ enum _pmerrno_t {
/* External library errors */
PM_ERR_LIBARCHIVE,
PM_ERR_LIBFETCH,
+ PM_ERR_LIBCURL,
PM_ERR_EXTERNAL_DOWNLOAD
};