Skip to content

Commit b4e3ab6

Browse files
authored
Merge pull request #6006 from unisonweb/cp/better-ambiguous-message
2 parents f347d84 + ff46621 commit b4e3ab6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unison-cli/src/Unison/CommandLine/OutputMessages.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ import Unison.Server.Backend qualified as Backend
132132
import Unison.Server.SearchResultPrime qualified as SR'
133133
import Unison.Share.Sync.Types qualified as Share (CodeserverTransportError (..), GetCausalHashByPathError (..), PullError (..))
134134
import Unison.Share.Sync.Types qualified as Sync
135+
import Unison.ShortHash qualified as SH
135136
import Unison.Symbol (Symbol)
136137
import Unison.Sync.Types qualified as Share
137138
import Unison.SyncV2.Types qualified as SyncV2
@@ -1282,7 +1283,7 @@ notifyUser dir issueFn = \case
12821283
<> "is ambiguous."
12831284
<> "Did you mean one of these hashes?",
12841285
"",
1285-
P.indentN 2 $ P.lines (P.shown <$> Set.toList rs),
1286+
P.indentN 2 $ P.lines (P.text . SH.toText . Referent.toShortHash <$> Set.toList rs),
12861287
"",
12871288
P.wrap "Try again with a few more hash characters to disambiguate."
12881289
]

0 commit comments

Comments
 (0)