Cosmetic
Fixed bug in error handling discovered by Eric while trying to debug something else (#229)