From 1b039b7659598bea370f8d2e1bddff555ad1b0f3 Mon Sep 17 00:00:00 2001 From: Todd Christensen Date: Mon, 23 Apr 2018 18:59:56 +0000 Subject: [PATCH] Avoid confusing error on reverse failure. Makes people think something went wrong. --- composer.json | 2 +- src/Inviqa/Patch/Patch.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index bc43b8c..872bd30 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "jamescowie/composer-patcher", "description": "Apply patches using composer", "license": "MIT", - "version": "1.0.2", + "version": "1.0.3", "authors": [ { "name": "jamescowie", diff --git a/src/Inviqa/Patch/Patch.php b/src/Inviqa/Patch/Patch.php index 3807ffb..18462a8 100644 --- a/src/Inviqa/Patch/Patch.php +++ b/src/Inviqa/Patch/Patch.php @@ -96,7 +96,7 @@ protected function isApplied() return $result; } catch (\Exception $e) { - $this->getOutput()->writeln("{$e->getMessage()}"); + // Ignore errors on the reverse, since it probably means it wasn't applied. return false; } }