summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-05-06 14:56:49 +0200
committerAraq <rumpf_a@web.de>2019-05-06 21:42:49 +0200
commita85d3879282a15e85ce9dd18b9a5bf020096a76c (patch)
treebcd4d4651dcd82c4707257a6e061dacf162c1baf /lib/system
parent4032726e87aa63f080c6cc7f1511152f45251c6c (diff)
downloadNim-a85d3879282a15e85ce9dd18b9a5bf020096a76c.tar.gz
fixes #10978
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/indexerrors.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/system/indexerrors.nim b/lib/system/indexerrors.nim
index cb1d522c9..53c52a26a 100644
--- a/lib/system/indexerrors.nim
+++ b/lib/system/indexerrors.nim
@@ -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)