summary refs log tree commit diff stats
path: root/lib/pure/strformat.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-05-02 09:15:32 +0200
committerAraq <rumpf_a@web.de>2018-05-02 13:34:54 +0200
commiteb03d9aafe947384440285dfb28be31d2bb1fb0f (patch)
tree63cb643cf998677b0f272b9be5d05570992eb5a0 /lib/pure/strformat.nim
parent48aee47bf68581d96ced689ced773023081fdffb (diff)
downloadNim-eb03d9aafe947384440285dfb28be31d2bb1fb0f.tar.gz
fixes #7749
Diffstat (limited to 'lib/pure/strformat.nim')
-rw-r--r--lib/pure/strformat.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/strformat.nim b/lib/pure/strformat.nim
index abdb655d7..a8b128460 100644
--- a/lib/pure/strformat.nim
+++ b/lib/pure/strformat.nim
@@ -278,7 +278,7 @@ template callFormatOption(res, arg, option) {.dirty.} =
 macro `&`*(pattern: string): untyped =
   ## For a specification of the ``&`` macro, see the module level documentation.
   if pattern.kind notin {nnkStrLit..nnkTripleStrLit}:
-    error "& only works with string literals", pattern
+    error "string formatting (fmt(), &) only works with string literals", pattern
   let f = pattern.strVal
   var i = 0
   let res = genSym(nskVar, "fmtRes")