add indent to ambiguous-identifier output

This commit is contained in:
Julian Fondren 2019-04-28 09:34:08 -05:00
commit 93edefbf5b

View file

@ -257,7 +257,7 @@ proc errorUseQualifier*(c: PContext; info: TLineInfo; s: PSym) =
while candidate != nil: while candidate != nil:
if i == 0: err.add " --use one of the following:\n" if i == 0: err.add " --use one of the following:\n"
else: err.add "\n" else: err.add "\n"
err.add candidate.owner.name.s & "." & candidate.name.s err.add " " & candidate.owner.name.s & "." & candidate.name.s
err.add ": " & typeToString(candidate.typ) err.add ": " & typeToString(candidate.typ)
candidate = nextIdentIter(ti, c.importTable.symbols) candidate = nextIdentIter(ti, c.importTable.symbols)
inc i inc i