diff options
| author | delahaye | 2000-07-21 15:27:17 +0000 |
|---|---|---|
| committer | delahaye | 2000-07-21 15:27:17 +0000 |
| commit | b8c6bda593c9f8fe2f038269c118f5c2fc3a3713 (patch) | |
| tree | 16029a0dea75802cb9b60e7cba2a04ed54bef51f | |
| parent | 105fdc0794cdb9336262c50068b3d31e7c6e0da7 (diff) | |
Fail n + appel de interp
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@563 85f007b7-540e-0410-9357-904b9bb8a0f7
| -rw-r--r-- | toplevel/errors.ml | 3 | ||||
| -rw-r--r-- | toplevel/vernacentries.ml | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/toplevel/errors.ml b/toplevel/errors.ml index bce23275f4..5b451046c8 100644 --- a/toplevel/errors.ml +++ b/toplevel/errors.ml @@ -54,6 +54,9 @@ let rec explain_exn_default = function | Logic.RefinerError e -> hOV 0 (Himsg.explain_refiner_error e) + | Tacmach.FailError i -> + hOV 0 [< 'sTR"Fail tactic always fails (level "; 'iNT i; 'sTR")." >] + | Stdpp.Exc_located (loc,exc) -> hOV 0 [< if loc = Ast.dummy_loc then [<>] else [< 'sTR"At location "; print_loc loc; 'sTR":"; 'fNL >]; diff --git a/toplevel/vernacentries.ml b/toplevel/vernacentries.ml index 638185682b..d483b1e6aa 100644 --- a/toplevel/vernacentries.ml +++ b/toplevel/vernacentries.ml @@ -1449,7 +1449,7 @@ let _ = in error msg | None -> ()); - solve_nth n (Tacinterp.vernac_interp tcom); + solve_nth n (Tacinterp.interp tcom); print_subgoals(); (* in case a strict subtree was completed, go back to the top of the prooftree *) |
