remove the reason from error message