Skip to content

Commit

Permalink
Merge pull request #6 from toddbc/reverse
Browse files Browse the repository at this point in the history
Avoid confusing error on reverse failure
  • Loading branch information
pmclain authored Apr 27, 2018
2 parents 36d9f28 + 1b039b7 commit db75e17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/Inviqa/Patch/Patch.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected function isApplied()

return $result;
} catch (\Exception $e) {
$this->getOutput()->writeln("<comment>{$e->getMessage()}</comment>");
// Ignore errors on the reverse, since it probably means it wasn't applied.
return false;
}
}
Expand Down

0 comments on commit db75e17

Please sign in to comment.