aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
m---------lib/monoucha10
-rw-r--r--src/version.nim6
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/monoucha b/lib/monoucha
-Subproject 6f4f3d99cb1189ac3f6ac86f4b3fda76066c698
+Subproject dccd3c44c61927bca9df8da267963f61ce35691
diff --git a/src/version.nim b/src/version.nim
index 4798b98b..00f103e0 100644
--- a/src/version.nim
+++ b/src/version.nim
@@ -16,10 +16,10 @@ macro tryImport(x: untyped; name: static string) =
macro checkVersion(xs: static string; major, minor, patch: int) =
let x = ident(xs & "Version")
quote do:
- when (`x`.Major, `x`.Minor, `x`.Patch) < (`major`, `minor`, `patch`):
+ when (`x`.Major, `x`.Minor, `x`.Patch) != (`major`, `minor`, `patch`):
var es = $`major` & "." & $`minor` & "." & $`patch`
var gs = $`x`.Major & "." & $`x`.Minor & "." & $`x`.Patch
- error("Version of " & `xs` & " too low (expected " & es & ", got " &
+ error("Incorrect version of " & `xs` & " (expected " & es & ", got " &
gs & "). Please run `make submodule` to update.")
tryImport chagashi/version, "chagashi"
@@ -29,4 +29,4 @@ tryImport monoucha/version, "monoucha"
static:
checkVersion("chagashi", 0, 6, 0)
checkVersion("chame", 1, 0, 1)
- checkVersion("monoucha", 0, 5, 1)
+ checkVersion("monoucha", 0, 5, 2)