aboutsummaryrefslogtreecommitdiffhomepage
path: root/vernac/explainErr.ml
diff options
context:
space:
mode:
authorGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-01-17 23:40:35 +0100
committerGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-04-25 00:00:43 +0200
commit30d3515546cf244837c6340b6b87c5f51e68cbf4 (patch)
tree70dd074f483c34e9f71da20edf878062a4b5b3af /vernac/explainErr.ml
parent84eb5cd72a015c45337a5a6070c5651f56be6e74 (diff)
[location] Remove Loc.ghost.
Now it is a private field, locations are optional.
Diffstat (limited to 'vernac/explainErr.ml')
-rw-r--r--vernac/explainErr.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/vernac/explainErr.ml b/vernac/explainErr.ml
index 04841c922..ed2dd274a 100644
--- a/vernac/explainErr.ml
+++ b/vernac/explainErr.ml
@@ -119,6 +119,6 @@ let process_vernac_interp_error ?(allow_uncaught=true) (exc, info) =
in
match e' with
| None -> e
- | Some (None, loc) -> (fst e, Loc.add_loc (snd e) loc)
- | Some (Some msg, loc) ->
+ | Some (loc, None) -> (fst e, Loc.add_loc (snd e) loc)
+ | Some (loc, Some msg) ->
(EvaluatedError (msg, Some (fst e)), Loc.add_loc (snd e) loc)