diff --git a/src/client/client_aliases.ml b/src/client/client_aliases.ml index 62921e2fa..635a80c5c 100644 --- a/src/client/client_aliases.ml +++ b/src/client/client_aliases.ml @@ -225,9 +225,13 @@ module Alias = functor (Entity : Entity) -> struct iter_s (fun (n, _v) -> if n = s then + Entity.to_source cctxt _v >>=? fun value -> failwith - "the %s alias %s already exists, use -force true to update" + "@[The %s alias %s already exists.@,\ + The current value is %s.@,\ + Use -force true to update@]" Entity.name n + value else return ()) list