aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-12 09:27:49 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-12 09:27:49 +0000
commit9a2c41a771a6d3985c55542b1bfd71793af29b7a (patch)
tree0e0762787990ae54d0591b78526753ac6d4ece86
parentb8307ce912f20187536f5b6980065d0601d27f34 (diff)
downloadpaludis-9a2c41a771a6d3985c55542b1bfd71793af29b7a.tar.gz
paludis-9a2c41a771a6d3985c55542b1bfd71793af29b7a.tar.xz
Better exception handling
-rw-r--r--src/install.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/install.cc b/src/install.cc
index d140287..c1baa8d 100644
--- a/src/install.cc
+++ b/src/install.cc
@@ -213,6 +213,15 @@ do_install()
install(dep->get<p::dle_name>(), dep->get<p::dle_version>());
}
}
+ catch (const p::PackageInstallActionError & e)
+ {
+ cout << endl;
+ cerr << "Install error:" << endl;
+ cerr << " * " << e.backtrace("\n * ");
+ cerr << e.message() << endl;
+
+ return_code |= 1;
+ }
catch (const p::NoSuchPackageError & e)
{
cout << endl;
@@ -277,6 +286,8 @@ do_install()
cerr << "Try '--dl-max-stack-depth " << std::max(
CommandLine::get_instance()->a_dl_max_stack_depth.argument() * 2, 100)
<< "'." << endl << endl;
+
+ return_code |= 1;
}
catch (const p::DepListError & e)
{