convert code to an integer, remove it from the error message