From 04c4835d193b96b7a01bc725abd9f3282c91a9ed Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Fri, 13 Jun 2008 07:14:30 +0000 Subject: [PATCH] print the name not found in the env --- helm/software/components/acic_content/termAcicContent.ml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/helm/software/components/acic_content/termAcicContent.ml b/helm/software/components/acic_content/termAcicContent.ml index 7a4590849..da5aa4960 100644 --- a/helm/software/components/acic_content/termAcicContent.ml +++ b/helm/software/components/acic_content/termAcicContent.ml @@ -309,7 +309,11 @@ let add_idrefs = let instantiate32 term_info idrefs env symbol args = let rec instantiate_arg = function | Ast.IdentArg (n, name) -> - let t = (try List.assoc name env with Not_found -> assert false) in + let t = + try List.assoc name env + with Not_found -> prerr_endline ("name not found in env: "^name); + assert false + in let rec count_lambda = function | Ast.AttributedTerm (_, t) -> count_lambda t | Ast.Binder (`Lambda, _, body) -> 1 + count_lambda body -- 2.39.2