summaryrefslogtreecommitdiff
path: root/src/InterpreterStatements.ml
diff options
context:
space:
mode:
authorSon Ho2022-03-03 23:26:03 +0100
committerSon Ho2022-03-03 23:26:03 +0100
commit85956db556c182f72e53ffcb91d32dd2e21d81f1 (patch)
treec80d3ba9459afcac4f49968413087838b66a1fc7 /src/InterpreterStatements.ml
parent6001c7241e50af8d9e1cd05fa2c97372a2ac9778 (diff)
Fix minor issues
Diffstat (limited to 'src/InterpreterStatements.ml')
-rw-r--r--src/InterpreterStatements.ml6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/InterpreterStatements.ml b/src/InterpreterStatements.ml
index ef7c09e8..5a700f1a 100644
--- a/src/InterpreterStatements.ml
+++ b/src/InterpreterStatements.ml
@@ -1009,7 +1009,11 @@ and eval_local_function_call_concrete (config : C.config) (fid : A.FunDeclId.id)
(* We can evaluate the function call only if it is not opaque *)
let body =
match def.body with
- | None -> raise (Failure "Can't evaluate a call to an opaque function")
+ | None ->
+ raise
+ (Failure
+ ("Can't evaluate a call to an opaque function: "
+ ^ Print.name_to_string def.name))
| Some body -> body
in
let tsubst =