File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/code/Magento/Store/Controller/Store Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 9
9
use Magento \Framework \App \Action \Action ;
10
10
use Magento \Framework \App \Action \Context as ActionContext ;
11
11
use Magento \Framework \App \Http \Context as HttpContext ;
12
+ use Magento \Framework \Exception \NoSuchEntityException ;
12
13
use Magento \Store \Api \StoreCookieManagerInterface ;
13
14
use Magento \Store \Api \StoreRepositoryInterface ;
14
15
use Magento \Store \Model \Store ;
@@ -78,7 +79,7 @@ public function execute()
78
79
$ store = $ this ->storeRepository ->getActiveStoreByCode ($ storeCode );
79
80
} catch (StoreIsInactiveException $ e ) {
80
81
$ error = __ ('Requested store is inactive ' );
81
- } catch (\ InvalidArgumentException $ e ) {
82
+ } catch (NoSuchEntityException $ e ) {
82
83
$ error = __ ('Requested store is not found ' );
83
84
}
84
85
You can’t perform that action at this time.
0 commit comments