improve math expression parsing error messages