Return non-zero when error to inform ninja of the failure.
Merge pull request #1828 from libm/fix_nonzero

Return non-zero when error to inform ninja of the failure.