Attempt to make error messages more useful