fixes #10978
This commit is contained in:
parent
4032726e87
commit
a85d387928
1 changed files with 4 additions and 1 deletions
|
|
@ -1,7 +1,10 @@
|
|||
# imported by other modules, unlike helpers.nim which is included
|
||||
|
||||
template formatErrorIndexBound*[T](i, a, b: T): string =
|
||||
"index " & $i & " not in " & $a & " .. " & $b
|
||||
when defined(standalone):
|
||||
"indexOutOfBounds"
|
||||
else:
|
||||
"index " & $i & " not in " & $a & " .. " & $b
|
||||
|
||||
template formatErrorIndexBound*[T](i, n: T): string =
|
||||
formatErrorIndexBound(i, 0, n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue