From a0601145eddfaa1afb1c51344633914b74674bef Mon Sep 17 00:00:00 2001
From: Jean-Michel Picod <jmichel@google.com>
Date: Tue, 28 Apr 2020 10:05:16 +0200
Subject: [PATCH] More accurate error message regarding tockloader version.

---
 deploy.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/deploy.py b/deploy.py
index a7d6f62..bb1c056 100755
--- a/deploy.py
+++ b/deploy.py
@@ -524,9 +524,9 @@ class OpenSKInstaller:
     final_hex.tofile(dest_file, format="hex")
 
   def check_prerequisites(self):
-    if not tockloader.__version__.startswith("1.4"):
-      fatal(("Your version of tockloader is too old: found {}, expected "
-             "1.4.0.".format(tockloader.__version__)))
+    if not tockloader.__version__.startswith("1.4."):
+      fatal(("Your version of tockloader seems incompatible: found {}, "
+             "expected 1.4.x.".format(tockloader.__version__)))
 
     if self.args.programmer == "jlink":
       assert_mandatory_binary("JLinkExe")
-- 
GitLab