summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/pragmas.nim2
-rw-r--r--compiler/semexprs.nim2
-rw-r--r--compiler/spawn.nim2
-rw-r--r--lib/pure/httpclient.nim2
-rw-r--r--lib/pure/selectors.nim2
-rw-r--r--tests/parallel/t7535.nim2
6 files changed, 6 insertions, 6 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim
index 35e75bc7b..3a2d9cede 100644
--- a/compiler/pragmas.nim
+++ b/compiler/pragmas.nim
@@ -824,7 +824,7 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: var int,
         makeExternExport(c, sym, getOptionalStr(c, it, "$1"), it.info)
         if k == wExportCpp:
           if c.config.backend != backendCpp:
-            localError(c.config, it.info, "exportcpp requires `cpp` backend, got " & $c.config.backend)
+            localError(c.config, it.info, "exportcpp requires `cpp` backend, got: " & $c.config.backend)
           else:
             incl(sym.flags, sfMangleCpp)
         incl(sym.flags, sfUsed) # avoid wrong hints
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index 2e229d861..cf8d4777f 100644
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -2291,7 +2291,7 @@ proc semMagic(c: PContext, n: PNode, s: PSym, flags: TExprFlags): PNode =
         result[i] = semExpr(c, n[i])
 
       if n.len > 1 and n[1].kind notin nkCallKinds:
-        return localErrorNode(c, n, n[1].info, "'spawn' takes a call expression; got " & $n[1])
+        return localErrorNode(c, n, n[1].info, "'spawn' takes a call expression; got: " & $n[1])
 
       let typ = result[^1].typ
       if not typ.isEmptyType:
diff --git a/compiler/spawn.nim b/compiler/spawn.nim
index 205197eaf..e57686cb4 100644
--- a/compiler/spawn.nim
+++ b/compiler/spawn.nim
@@ -334,7 +334,7 @@ proc wrapProcForSpawn*(g: ModuleGraph; idgen: IdGenerator; owner: PSym; spawnExp
     result = newNodeI(nkStmtList, n.info)
 
   if n.kind notin nkCallKinds:
-    localError(g.config, n.info, "'spawn' takes a call expression; got " & $n)
+    localError(g.config, n.info, "'spawn' takes a call expression; got: " & $n)
     return
   if optThreadAnalysis in g.config.globalOptions:
     if {tfThread, tfNoSideEffect} * n[0].typ.flags == {}:
diff --git a/lib/pure/httpclient.nim b/lib/pure/httpclient.nim
index b60894103..86708dc40 100644
--- a/lib/pure/httpclient.nim
+++ b/lib/pure/httpclient.nim
@@ -751,7 +751,7 @@ proc parseBody(client: HttpClient | AsyncHttpClient, headers: HttpHeaders,
           httpError("Got disconnected while trying to read body.")
         if recvLen != length:
           httpError("Received length doesn't match expected length. Wanted " &
-                    $length & " got " & $recvLen)
+                    $length & " got: " & $recvLen)
     else:
       # (http://tools.ietf.org/html/rfc2616#section-4.4) NR.4 TODO
 
diff --git a/lib/pure/selectors.nim b/lib/pure/selectors.nim
index e78219aec..82550e09b 100644
--- a/lib/pure/selectors.nim
+++ b/lib/pure/selectors.nim
@@ -321,7 +321,7 @@ else:
   proc verifySelectParams(timeout: int) =
     # Timeout of -1 means: wait forever
     # Anything higher is the time to wait in milliseconds.
-    doAssert(timeout >= -1, "Cannot select with a negative value, got " & $timeout)
+    doAssert(timeout >= -1, "Cannot select with a negative value, got: " & $timeout)
 
   when defined(linux) and not defined(emscripten):
     include ioselects/ioselectors_epoll
diff --git a/tests/parallel/t7535.nim b/tests/parallel/t7535.nim
index a6bc0dabe..052dcdc3a 100644
--- a/tests/parallel/t7535.nim
+++ b/tests/parallel/t7535.nim
@@ -1,6 +1,6 @@
 discard """
   matrix: "--threads:on"
-  errormsg: "'spawn' takes a call expression; got proc (x: uint32) = echo [x]"
+  errormsg: "'spawn' takes a call expression; got: proc (x: uint32) = echo [x]"
 """
 
 import threadpool