correct ant error format on mac os.