BPackageManager::_CommitPackageChanges(): Fix error handling
The error returned by CommitTransaction() is just indicates whether transactionResult has been initialized.
This commit is contained in:
parent
d3c96ad809
commit
99f9333a2a
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user