Skip to content

Commit 12631c0

Browse files
Revert "Throw new AfterCommitException from AbstractResource.php"
This reverts commit 6970611.
1 parent b672c4e commit 12631c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/internal/Magento/Framework/Model/ResourceModel/AbstractResource.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Magento\Framework\DataObject;
1010
use Magento\Framework\Model\CallbackPool;
1111
use Magento\Framework\Serialize\Serializer\Json;
12-
use Magento\Framework\Exception\AfterCommitException;
1312

1413
/**
1514
* Abstract resource model
@@ -92,7 +91,7 @@ public function commit()
9291
call_user_func($callback);
9392
}
9493
} catch (\Exception $e) {
95-
throw new AfterCommitException(null, null, $e);
94+
throw $e;
9695
}
9796
}
9897
return $this;

0 commit comments

Comments
 (0)