fix and test for missing error message