aboutsummaryrefslogtreecommitdiff
path: root/engine/proofview.ml
diff options
context:
space:
mode:
authorMaxime Dénès2018-02-01 18:42:28 +0100
committerMaxime Dénès2018-02-01 18:42:28 +0100
commit48eab4964ffe3d87c8036ed3b10563c595838d73 (patch)
treea147f035b218656eaae79949cef7a46ce230d53d /engine/proofview.ml
parent700c08b1215e11470814ce82e04551ffc00cdfeb (diff)
parent1176d4086b65c79a1d30a55640d3d933fa24a7c1 (diff)
Merge PR #6675: [proofview] enter_one: add __LOC__ argument to get relevant error msg
Diffstat (limited to 'engine/proofview.ml')
-rw-r--r--engine/proofview.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/proofview.ml b/engine/proofview.ml
index 0a64351950..47b9b406d8 100644
--- a/engine/proofview.ml
+++ b/engine/proofview.ml
@@ -1086,7 +1086,7 @@ module Goal = struct
end
end
- let enter_one f =
+ let enter_one ?(__LOC__=__LOC__) f =
let open Proof in
Comb.get >>= function
| [goal] -> begin
@@ -1097,7 +1097,8 @@ module Goal = struct
let (e, info) = CErrors.push e in
tclZERO ~info e
end
- | _ -> assert false (* unsatisfied not-exactly-one-goal precondition *)
+ | _ ->
+ CErrors.anomaly Pp.(str __LOC__ ++ str " enter_one")
let goals =
Pv.get >>= fun step ->