Show regular output when errorOutput is empty (#1554)

* Show regular output when errorOutput is empty

* Update CHANGELOG.md
This commit is contained in:
Barry vd. Heuvel 2018-02-18 02:59:26 +01:00 committed by Anton Medvedev
parent 6cfc6173ed
commit c3f77d3dfc
2 changed files with 3 additions and 2 deletions

View File

@ -16,6 +16,7 @@
- Throw meaningfull exception on errors in cd() [#1480]
- Make sure Context::pop() is called when Callback errors in on(...) function [#1513]
- Update silverstripe recipe to support silverstripe 4
- Show standard output in exceptions when error output is empty [#1554]
## v6.0.5
[v6.0.4...v6.0.5](https://github.com/deployphp/deployer/compare/v6.0.4...v6.0.5)
@ -349,7 +350,7 @@
- Fixed typo3 recipe
- Fixed remove of shared dir on first deploy
[#1554]: https://github.com/deployphp/deployer/pull/1554
[#1521]: https://github.com/deployphp/deployer/pull/1521
[#1513]: https://github.com/deployphp/deployer/pull/1513
[#1481]: https://github.com/deployphp/deployer/issues/1481

View File

@ -47,7 +47,7 @@ class RuntimeException extends Exception
$message .= sprintf(
"\n\n================\n%s",
$errorOutput
trim($errorOutput) ? $errorOutput : $output
);
parent::__construct($message, $exitCode);