]> matita.cs.unibo.it Git - helm.git/commitdiff
catch the right exception, avoid uncaught Subst_not_found
authorEnrico Tassi <enrico.tassi@inria.fr>
Tue, 13 Apr 2010 19:53:31 +0000 (19:53 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Tue, 13 Apr 2010 19:53:31 +0000 (19:53 +0000)
From: tassi <tassi@c2b2084f-9a08-0410-b176-e24b037a169a>

helm/software/components/ng_refiner/nCicUnification.ml

index 1f03755ffbd9cde673cc3be5c9cbeffe9809d23f..d4cb7a53f4c18df105f3a539b72409f6e7d50408 100644 (file)
@@ -50,7 +50,7 @@ let eta_reduce subst t =
           let _,_,t,_ = NCicUtils.lookup_subst i subst in
           let t = NCicSubstitution.subst_meta lc t in
           eat_lambdas ctx t
-        with Not_found -> ctx, t)
+        with NCicUtils.Subst_not_found _ -> ctx, t)
     | t -> ctx, t
   in
   let context_body = eat_lambdas [] t in