Ver código fonte

Correctif bug 500

packProduct
Fabien Normand 2 anos atrás
pai
commit
0c59e9f516
1 arquivos alterados com 2 adições e 1 exclusões
  1. +2
    -1
      Resolver/MerchantResolver.php

+ 2
- 1
Resolver/MerchantResolver.php Ver arquivo

@@ -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');
}
}


Carregando…
Cancelar
Salvar