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 @@ -77,7 +77,9 @@ public function get($code)
77
77
]);
78
78
79
79
if ($ website ->getId () === null ) {
80
- throw new NoSuchEntityException ();
80
+ throw new NoSuchEntityException (
81
+ __ (sprintf ("The website %s that was requested wasn't found. Verify the website and try again. " , $ code ))
82
+ );
81
83
}
82
84
$ this ->entities [$ code ] = $ website ;
83
85
$ this ->entitiesById [$ website ->getId ()] = $ website ;
@@ -99,7 +101,9 @@ public function getById($id)
99
101
]);
100
102
101
103
if ($ website ->getId () === null ) {
102
- throw new NoSuchEntityException ();
104
+ throw new NoSuchEntityException (
105
+ __ (sprintf ("The website %s that was requested wasn't found. Verify the website and try again. " , $ id ))
106
+ );
103
107
}
104
108
$ this ->entities [$ website ->getCode ()] = $ website ;
105
109
$ this ->entitiesById [$ id ] = $ website ;
You can’t perform that action at this time.
0 commit comments