summaryrefslogtreecommitdiff
path: root/compiler/Interpreter.ml
diff options
context:
space:
mode:
authorEscherichia2024-04-03 17:01:27 +0200
committerEscherichia2024-04-03 17:01:27 +0200
commit084480c807b58947b8487eb3a7c6a71bb388a832 (patch)
tree3d9a4cbca66e0f02ff578a5f653d34ca67a87632 /compiler/Interpreter.ml
parentf4a89caad1459f2f72295c5baa284fe1f9b4c39f (diff)
added Error and EError to expressions and propagated related changes
Diffstat (limited to 'compiler/Interpreter.ml')
-rw-r--r--compiler/Interpreter.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/Interpreter.ml b/compiler/Interpreter.ml
index a65e1663..d0a54750 100644
--- a/compiler/Interpreter.ml
+++ b/compiler/Interpreter.ml
@@ -612,7 +612,8 @@ let evaluate_function_symbolic (synthesize : bool) (ctx : decls_ctx)
(* Evaluate the function *)
let symbolic =
- eval_function_body config (Option.get fdef.body).body cf_finish ctx
+ try eval_function_body config (Option.get fdef.body).body cf_finish ctx
+ with CFailure (meta, msg) -> Some (Error (meta, msg))
in
(* Return *)