Skip to content

Commit

Permalink
add square brakets to location message when object is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Alidra committed Apr 9, 2024
1 parent bdf3828 commit 86f1241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parsing/scope.ml
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,9 @@ let scope_term :
let md = M_Term {m_term_meta_of_key=mok; m_term_prv} in
Bindlib.unbox (scope ?find_sym ~typ 0 md ss env t)
with Fatal(Some p, msg) ->
Console.out 3 (Color.red "%a") Pos.pp p;
Console.out 3 (Color.red "[%a]") Pos.pp p;
(** Get ride of the position because the error message is displayed here
There is no more need of the position and this avoids the message
There is no more need of the position and this avoids the message
to be displayed twice in [Error.handle_exceptions] *)
raise(Fatal(None, msg))

Expand Down

0 comments on commit 86f1241

Please sign in to comment.