瀏覽代碼

Correctif bug 500

packProduct
Fabien Normand 2 年之前
父節點
當前提交
0c59e9f516
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      Resolver/MerchantResolver.php

+ 2
- 1
Resolver/MerchantResolver.php 查看文件

@@ -20,6 +20,7 @@ use Lc\SovBundle\Resolver\UrlResolver;
use Lc\SovBundle\Solver\Setting\SettingSolver;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Security\Core\Security;

@@ -83,7 +84,7 @@ class MerchantResolver
return $this->currentMerchant;
}
else {
throw new \ErrorException('Aucun merchant courant');
throw new NotFoundHttpException('Aucun marchand n\'est défini');
}
}


Loading…
取消
儲存