File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Store/Model Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public function get($code)
57
57
$ store = $ this ->storeFactory ->create ();
58
58
$ store ->load ($ code , 'code ' );
59
59
if ($ store ->getId () === null ) {
60
- throw new NoSuchEntityException ();
60
+ throw new NoSuchEntityException (__ ( ' Requested store is not found ' ) );
61
61
}
62
62
$ this ->entities [$ code ] = $ store ;
63
63
$ this ->entitiesById [$ store ->getId ()] = $ store ;
@@ -88,7 +88,7 @@ public function getById($id)
88
88
$ store = $ this ->storeFactory ->create ();
89
89
$ store ->load ($ id );
90
90
if ($ store ->getId () === null ) {
91
- throw new NoSuchEntityException ();
91
+ throw new NoSuchEntityException (__ ( ' Requested store is not found ' ) );
92
92
}
93
93
$ this ->entitiesById [$ id ] = $ store ;
94
94
$ this ->entities [$ store ->getCode ()] = $ store ;
You can’t perform that action at this time.
0 commit comments