fix failure to report errors

@radumereuta please review

This is why you didn't see an error message on the command line. Next time something similar happens, please file an issue; it's a bug.