about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-14 22:46:40 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-14 22:46:40 +0100
commit880685a1c3d7b0e4ac386783489512b61aeb806c (patch)
treef772a6d790bfc04ee85a2a0fc5ea9b431c69e9ad /src
parentb298f5bb70875150addb978ae3c48da8b4105e40 (diff)
downloadchawan-880685a1c3d7b0e4ac386783489512b61aeb806c.tar.gz
version: print error message on a single line
it's easier to see that it's a single message this way
Diffstat (limited to 'src')
-rw-r--r--src/version.nim7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/version.nim b/src/version.nim
index 443236ef..3d4d7c9c 100644
--- a/src/version.nim
+++ b/src/version.nim
@@ -9,8 +9,8 @@ macro tryImport(x: untyped, name: static string) =
   quote do:
     when not compiles(imp `x`):
       static:
-        error("Cannot find submodule " & `name` & ".\n" &
-          "Please run `make submodule` to fetch the required submodules.")
+        error("Cannot find submodule " & `name` &
+          ". Please run `make submodule` to fetch the required submodules.")
     import `x` as `vs`
 
 macro checkVersion(xs: static string, major, minor, patch: int) =
@@ -20,8 +20,7 @@ macro checkVersion(xs: static string, major, minor, patch: int) =
       var es = $`major` & "." & $`minor` & "." & $`patch`
       var gs = $`x`.Major & "." & $`x`.Minor & "." & $`x`.Patch
       error("Version of " & `xs` & " too low (expected " & es & ", got " &
-        gs & ").\n" &
-        "Please run `make submodule` to update.")
+        gs & "). Please run `make submodule` to update.")
 
 tryImport chagashi/version, "chagashi"
 tryImport chame/version, "chame"