More accurate error message regarding tockloader version.

This commit is contained in:
Jean-Michel Picod
2020-04-28 10:05:16 +02:00
parent c9773e0f80
commit a0601145ed

View File

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