Skip to content

Commit fceaa32

Browse files
authored
Merge branch 'databricks:main' into main
2 parents de71af9 + c3d1db5 commit fceaa32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.codegen/error_overrides.py.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ _ALL_OVERRIDES = [
1111
debug_name="{{.Name}}",
1212
path_regex=re.compile(r'{{.PathRegex}}'),
1313
verb="{{.Verb}}",
14-
status_code_matcher=re.compile(r'{{.StatusCodeMatcher}}'),
15-
error_code_matcher=re.compile(r'{{.ErrorCodeMatcher}}'),
16-
message_matcher=re.compile(r'{{.MessageMatcher}}'),
14+
status_code_matcher=re.compile(r'{{replaceAll "'" "\\'" .StatusCodeMatcher}}'),
15+
error_code_matcher=re.compile(r'{{replaceAll "'" "\\'" .ErrorCodeMatcher}}'),
16+
message_matcher=re.compile(r'{{replaceAll "'" "\\'" .MessageMatcher}}'),
1717
custom_error={{.OverrideErrorCode.PascalName}},
1818
),
1919
{{- end }}

0 commit comments

Comments
 (0)