diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2023-03-30 15:35:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 15:35:00 +0200 |
commit | 72ca444122bf99c58a88768faa22c12aca5e3ccc (patch) | |
tree | 3ae81b96e0d2b5113ab04ddb49e1f0804f0bdebd /compiler | |
parent | ecf9efa3977f95aed5229ab79cd6ac4799a32a4c (diff) | |
download | Nim-72ca444122bf99c58a88768faa22c12aca5e3ccc.tar.gz |
hopefully easier to understand error message (#21585)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semcall.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim index 987fd4a13..8445b25e7 100644 --- a/compiler/semcall.nim +++ b/compiler/semcall.nim @@ -132,7 +132,7 @@ proc pickBestCandidate(c: PContext, headSymbol: PNode, # just in case, should be impossible though if syms.len == 0: break - + if nextSymIndex > high(syms): # we have reached the end break @@ -293,7 +293,7 @@ proc presentFailedCandidates(c: PContext, n: PNode, errors: CandidateErrors): const errTypeMismatch = "type mismatch: got <" errButExpected = "but expected one of:" - errExpectedPosition = "Expected one of (first mismatch at position [#]):" + errExpectedPosition = "Expected one of (first mismatch at [position]):" errUndeclaredField = "undeclared field: '$1'" errUndeclaredRoutine = "attempting to call undeclared routine: '$1'" errBadRoutine = "attempting to call routine: '$1'$2" |