made the error message more friendly