BPackageManager::_CommitPackageChanges(): Fix error handling

The error returned by CommitTransaction() is just indicates whether
transactionResult has been initialized.
This commit is contained in:
Ingo Weinhold 2013-09-10 19:01:25 +02:00
parent d3c96ad809
commit 99f9333a2a

View File

@ -518,7 +518,9 @@ BPackageManager::_CommitPackageChanges(Transaction& transaction)
BDaemonClient::BCommitTransactionResult transactionResult;
status_t error = fInstallationInterface->CommitTransaction(transaction,
transactionResult);
if (error != B_OK) {
if (error != B_OK)
DIE(error, "failed to commit transaction");
if (transactionResult.Error() != B_OK) {
DIE("failed to commit transaction: %s",
transactionResult.FullErrorMessage().String());
}