mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-05 11:27:07 +00:00
InventoryTransaction: provide object ID of failed action for debugging identification
closes #3235
This commit is contained in:
parent
0324392cd8
commit
5d92eddc82
@ -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()){
|
||||
|
Loading…
x
Reference in New Issue
Block a user