Make sure there is indeed an error to report

...to avoid messages like "error: Success".