Skip to content

Commit fc49d10

Browse files
stroxlermeta-codesync[bot]
authored andcommitted
Make PyreflyCompiler raise on error
Summary: Otherwise, _compile_static is going to swallow `TypedSyntaxError`; this is currently happening in the pytree benchmark and I can't see the problem without this change. Reviewed By: yangdanny97 Differential Revision: D96393279 fbshipit-source-id: dd4104eca1f15785fb529db888d60957240d3d10
1 parent 0ab5de9 commit fc49d10

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cinderx/PythonLib/cinderx/compiler/static/pyrefly_compiler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def __init__(
3838
enable_patching=enable_patching,
3939
use_py_compiler=use_py_compiler,
4040
allow_list_regex=allow_list_regex,
41+
raise_on_error=True,
4142
)
4243
self.pyrefly = pyrefly
4344
self.static_opt_in = static_opt_in

0 commit comments

Comments
 (0)