get_package_dependencies: When adding a package fails, actually report why.

e.Details() gives "additional details" and not the real failure
message, which is in e.Message(), so actually print that.
This commit is contained in:
Augustin Cavalier 2017-12-05 20:15:49 -05:00
parent f3114cade7
commit dfaaa345ff

View File

@ -90,7 +90,7 @@ main(int argc, const char* const* argv)
installedRepositoryBuilder.AddPackage(packages[i]);
installedRepositoryBuilder.AddToSolver(solver, true);
} catch (BFatalErrorException e) {
DIE(B_OK, "%s", e.Details().String());
DIE(e.Error(), "%s %s", e.Message().String(), e.Details().String());
}
// add external repositories