From a57403c5bff14e4595d16873ec5f3d029f4b47f4 Mon Sep 17 00:00:00 2001 From: valeros Date: Thu, 21 Jan 2021 13:46:21 +0200 Subject: [PATCH] Print error message when there is no SPIFFS section in partition file Resolve #452 --- builder/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/builder/main.py b/builder/main.py index 6faed8e..d290f07 100644 --- a/builder/main.py +++ b/builder/main.py @@ -112,8 +112,9 @@ def fetch_spiffs_size(env): spiffs = p if not spiffs: sys.stderr.write( - env.subst("Could not find the `spiffs` section in the partitions " - "table $PARTITIONS_TABLE_CSV\n")) + "Could not find the `spiffs` section in the partitions " + "table %s\n" % env.subst("$PARTITIONS_TABLE_CSV") + ) env.Exit(1) return env["SPIFFS_START"] = _parse_size(spiffs['offset'])