Browse Source

Correctif bug 500

packProduct
Fabien Normand 2 years ago
parent
commit
0c59e9f516
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      Resolver/MerchantResolver.php

+ 2
- 1
Resolver/MerchantResolver.php View File

@@ -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…
Cancel
Save