File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -612,6 +612,9 @@ module Interp = struct
612
612
end with e ->
613
613
let e = Exninfo. capture e in
614
614
Vernacstate.Synterp. unfreeze final_synterp_state;
615
+ (match fst e with
616
+ | CErrors. UserError _ -> ()
617
+ | _ -> Feedback. msg_debug Pp. (str " elpi lets escape exception: " ++ CErrors. print (fst e)));
615
618
Exninfo. iraise e)
616
619
617
620
let run_in_program ?program ~syndata query =
@@ -649,7 +652,8 @@ let run_tactic_common loc ?(static_check=false) program ~main ?(atts=[]) () =
649
652
| API.Execute. Success solution -> Coq_elpi_HOAS. tclSOLUTION2EVD sigma solution
650
653
| API.Execute. NoMoreSteps -> CErrors. user_err Pp. (str " elpi run out of steps" )
651
654
| API.Execute. Failure -> elpi_fails program
652
- | exception (Coq_elpi_utils. LtacFail (level , msg )) -> tclFAILn level msg)
655
+ | exception (Coq_elpi_utils. LtacFail (level , msg )) -> tclFAILn level msg
656
+ | exception e -> let e = Exninfo. capture e in (Feedback. msg_debug Pp. (str " elpi lets escape exception: " ++ CErrors. print (fst e)); Exninfo. iraise e))
653
657
tclIDTAC
654
658
655
659
let run_tactic loc program ~atts _ist args =
You can’t perform that action at this time.
0 commit comments