File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/code/Magento/Store/Model Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,9 @@ public function get($code)
78
78
]);
79
79
80
80
if ($ website ->getId () === null ) {
81
- throw new NoSuchEntityException ();
81
+ throw new NoSuchEntityException (
82
+ __ (sprintf ("The website %s that was requested wasn't found. Verify the website and try again. " , $ code ))
83
+ );
82
84
}
83
85
$ this ->entities [$ code ] = $ website ;
84
86
$ this ->entitiesById [$ website ->getId ()] = $ website ;
@@ -100,7 +102,9 @@ public function getById($id)
100
102
]);
101
103
102
104
if ($ website ->getId () === null ) {
103
- throw new NoSuchEntityException ();
105
+ throw new NoSuchEntityException (
106
+ __ (sprintf ("The website %s that was requested wasn't found. Verify the website and try again. " , $ id ))
107
+ );
104
108
}
105
109
$ this ->entities [$ website ->getCode ()] = $ website ;
106
110
$ this ->entitiesById [$ id ] = $ website ;
You can’t perform that action at this time.
0 commit comments