From 91abb30f1c46287d386b646cef8cb42eadcaa250 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Mon, 6 Jun 2016 17:56:08 +0200 Subject: eipp: include global errors in reported error Git-Dch: Ignore --- cmdline/apt-internal-planer.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'cmdline') diff --git a/cmdline/apt-internal-planer.cc b/cmdline/apt-internal-planer.cc index 0657be3b2..c83dba8b1 100644 --- a/cmdline/apt-internal-planer.cc +++ b/cmdline/apt-internal-planer.cc @@ -172,15 +172,21 @@ int main(int argc,const char *argv[]) /*{{{*/ if (PM.ApplyRequest(actions) == false) DIE("Failed to apply request to packagemanager!"); pkgPackageManager::OrderResult const Res = PM.DoInstallPreFork(); + std::ostringstream broken; switch (Res) { case pkgPackageManager::Completed: EDSP::WriteProgress(100, "Done", output); break; case pkgPackageManager::Incomplete: - EDSP::WriteError("pm-incomplete", "Planer could only plan Incompletely", output); + broken << "Planer could only incompletely plan an installation order!" << std::endl; + _error->DumpErrors(broken, GlobalError::DEBUG); + EDSP::WriteError("pm-incomplete", broken.str(), output); + break; case pkgPackageManager::Failed: - EDSP::WriteError("pm-failed", "Planer failed to find an order", output); + broken << "Planer failed to find an installation order!" << std::endl; + _error->DumpErrors(broken, GlobalError::DEBUG); + EDSP::WriteError("pm-failed", broken.str(), output); break; } -- cgit v1.2.3