From 82ee3054bac26e4485166904829b067e215de97f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Thu, 29 Jun 2017 15:44:13 +0200 Subject: [PATCH] Fixing error message issue --- src/Mouf/Utils/Patcher/Controllers/PatchController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mouf/Utils/Patcher/Controllers/PatchController.php b/src/Mouf/Utils/Patcher/Controllers/PatchController.php index 86f338d..52f103b 100644 --- a/src/Mouf/Utils/Patcher/Controllers/PatchController.php +++ b/src/Mouf/Utils/Patcher/Controllers/PatchController.php @@ -172,12 +172,12 @@ public function applyAllPatches($name, array $types, $action, $selfedit) { 'skipped' => $skippedPatchArray ] = $patchService->applyAll($types); - } catch (\Exception $e) { + $this->displayNotificationMessage($appliedPatchArray, $skippedPatchArray); + } catch (\Exception $e) { $htmlMessage = "An error occured while applying the patch: ".$e->getMessage(); set_user_message($htmlMessage); } - $this->displayNotificationMessage($appliedPatchArray, $skippedPatchArray); header('Location: .?name='.urlencode($name)); }