makes error message more helpful