remove useless information in error message