summaryrefslogtreecommitdiff
path: root/src/cmdline
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmdline')
-rw-r--r--src/cmdline/cmdline_download.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmdline/cmdline_download.cc b/src/cmdline/cmdline_download.cc
index 68329faf..655d6337 100644
--- a/src/cmdline/cmdline_download.cc
+++ b/src/cmdline/cmdline_download.cc
@@ -51,6 +51,12 @@ int cmdline_download(int argc, char *argv[])
shared_ptr<OpProgress> progress = make_text_progress(false, term, term, term);
apt_init(progress.get(), false);
+ if(_error->PendingError())
+ {
+ _error->DumpErrors();
+ return -1;
+ }
+
pkgSourceList list;
if(!list.ReadMainList())
{