aboutsummaryrefslogtreecommitdiff
path: root/toplevel
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2014-01-06 14:39:53 +0100
committerPierre-Marie Pédrot2014-01-06 14:39:53 +0100
commit2f6e3a8a453c3fa29bbc660a929c5140916c76b3 (patch)
treec7ab6e7576cbbb4adde5404183c062ef697a7389 /toplevel
parent0427f99bd793a8aa8245e61ec340ca4c6966ba63 (diff)
Algebraized "No such hypothesis" errors
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/himsg.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/toplevel/himsg.ml b/toplevel/himsg.ml
index 8df362f3ac..1cbb47846c 100644
--- a/toplevel/himsg.ml
+++ b/toplevel/himsg.ml
@@ -928,6 +928,9 @@ let explain_meta_in_type c =
str "In refiner, a meta appears in the type " ++ brk(1,1) ++ pr_lconstr c ++
str " of another meta"
+let explain_no_such_hyp id =
+ str "No such hypothesis: " ++ pr_id id
+
let explain_refiner_error = function
| BadType (arg,ty,conclty) -> explain_refiner_bad_type arg ty conclty
| UnresolvedBindings t -> explain_refiner_unresolved_bindings t
@@ -937,6 +940,7 @@ let explain_refiner_error = function
| DoesNotOccurIn (c,hyp) -> explain_does_not_occur_in c hyp
| NonLinearProof c -> explain_non_linear_proof c
| MetaInType c -> explain_meta_in_type c
+ | NoSuchHyp id -> explain_no_such_hyp id
(* Inductive errors *)