Fixes evanmiller#146 by checking for "ERROR" output.
Merge pull request #200 from runejuhl/issue/146

Fixes evanmiller#146 by checking for "ERROR" output.