fixed error message on failures