From 5d92eddc824b5426edf76b0a84b3a8a0349893e2 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 21 May 2022 17:35:21 +0100 Subject: [PATCH] InventoryTransaction: provide object ID of failed action for debugging identification closes #3235 --- src/inventory/transaction/InventoryTransaction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inventory/transaction/InventoryTransaction.php b/src/inventory/transaction/InventoryTransaction.php index d79b07cd1..82e206550 100644 --- a/src/inventory/transaction/InventoryTransaction.php +++ b/src/inventory/transaction/InventoryTransaction.php @@ -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()){