package_daemon: Actually return transaction errors instead of OK always.

This "fixes" #10959, though now the varying potential causes of that
will now print actual errors earlier instead of the error message
in that ticket.
This commit is contained in:
Augustin Cavalier
2019-05-15 16:18:35 -04:00
parent f85e030047
commit f6f19105dc
+1 -1
View File
@@ -1373,7 +1373,7 @@ Volume::_CommitTransaction(BMessage* message,
error = B_TRANSACTION_NO_MEMORY;
}
_result.SetError(B_TRANSACTION_OK);
_result.SetError(error);
// revert on error
if (error != B_TRANSACTION_OK)