aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-09-27 11:59:24 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-09-27 11:59:24 +0000
commitfff15ee0fec4919aafa11d76d1b040453b9ea6b0 (patch)
treeaf20472a34692c6dd6498e6ed4c0282ab2a23cd5
parent95ab74752e8004925dd9e56a37166d995cc7e98a (diff)
downloadpaludis-fff15ee0fec4919aafa11d76d1b040453b9ea6b0.tar.gz
paludis-fff15ee0fec4919aafa11d76d1b040453b9ea6b0.tar.xz
Display the nice error message with resume command for fetch failures too.
-rw-r--r--src/paludis/install.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/paludis/install.cc b/src/paludis/install.cc
index c9215c4..f7ef3aa 100644
--- a/src/paludis/install.cc
+++ b/src/paludis/install.cc
@@ -637,6 +637,18 @@ do_install()
return_code |= 1;
}
+ catch (const PackageFetchActionError & e)
+ {
+ cout << endl;
+ cerr << "Fetch error:" << endl;
+ cerr << " * " << e.backtrace("\n * ");
+ cerr << e.message() << endl;
+ cerr << endl;
+ show_resume_command(task);
+ cerr << endl;
+
+ return_code |= 1;
+ }
catch (const NoSuchPackageError & e)
{
cout << endl;