replacing an error message in the enum parsing