Updated compile error to only catch re.errors