Commit c450ea75 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Plus aucune exception n'était levée si l'import échouait (autre que 404)!

parent 8d29d99c
Loading
Loading
Loading
Loading
+4 −0
Changes for module/Import/src/Import/Service/ImportService.php: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -128,6 +128,8 @@ class ImportService
        } catch (CallException $e) {
            if ($e->getCode() === 404) {
                throw new RuntimeException("Le service '$service' n'existe pas !", null, $e);
            } else {
                throw new RuntimeException("Erreur rencontrée lors de l'import (service: '$service')", null, $e);
            }
        }

@@ -167,6 +169,8 @@ class ImportService
                    } else {
                        $this->logger->alert("$message On continue tout de même.");
                    }
                } else {
                    throw new RuntimeException("Erreur rencontrée lors de l'import (service: tous)", null, $e);
                }
            }
        }