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