We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5a07b8 commit 8b7aa7eCopy full SHA for 8b7aa7e
app/code/Magento/Widget/Model/DeleteWidgetById.php
@@ -68,7 +68,12 @@ private function getWidgetById(int $instanceId): WidgetInstance
68
$this->resourceModel->load($widgetInstance, $instanceId);
69
70
if (!$widgetInstance->getId()) {
71
- throw NoSuchEntityException::singleField('instance_id', $instanceId);
+ throw new NoSuchEntityException(
72
+ __(
73
+ 'No such entity with instance_id = %instance_id',
74
+ ['instance_id' => $instanceId]
75
+ )
76
+ );
77
}
78
79
return $widgetInstance;
0 commit comments