Revision dc9f3daf8dbb8ae352ae37cabd40a817eb115f60

Committed on 17/03/2015 9:23 am by Gildas Quéméner <[email protected]> [GitHub Diff]

Rely on last command exit status to raise error

Some tools like composer write human-related non-error messages to
stderr, thus it's not safe to rely on stderr to decide if the command
failed.

More info:
- https://github.com/composer/composer/issues/3795#issuecomment-76401013
- https://github.com/composer/composer/issues/1905#issuecomment-41631659
- https://github.com/composer/composer/pull/3715#issuecomment-73271923