Print error message when there is no SPIFFS section in partition file
Resolve #452
This commit is contained in:
+3
-2
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user