InventoryTransaction: provide object ID of failed action for debugging identification

closes #3235
This commit is contained in:
Dylan K. Taylor 2022-05-21 17:35:21 +01:00
parent 0324392cd8
commit 5d92eddc82
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -148,7 +148,7 @@ class InventoryTransaction{
try{
$action->validate($this->source);
}catch(TransactionValidationException $e){
throw new TransactionValidationException(get_class($action) . ": " . $e->getMessage(), 0, $e);
throw new TransactionValidationException(get_class($action) . "#" . spl_object_id($action) . ": " . $e->getMessage(), 0, $e);
}
if(!$action->getSourceItem()->isNull()){