Print error message when there is no SPIFFS section in partition file

Resolve #452
This commit is contained in:
valeros
2021-01-21 13:46:21 +02:00
parent e542df17d1
commit a57403c5bf
+3 -2
View File
@@ -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'])