Skip to content

Commit a57403c

Browse files
committed
Print error message when there is no SPIFFS section in partition file
Resolve platformio#452
1 parent e542df1 commit a57403c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

builder/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ def fetch_spiffs_size(env):
112112
spiffs = p
113113
if not spiffs:
114114
sys.stderr.write(
115-
env.subst("Could not find the `spiffs` section in the partitions "
116-
"table $PARTITIONS_TABLE_CSV\n"))
115+
"Could not find the `spiffs` section in the partitions "
116+
"table %s\n" % env.subst("$PARTITIONS_TABLE_CSV")
117+
)
117118
env.Exit(1)
118119
return
119120
env["SPIFFS_START"] = _parse_size(spiffs['offset'])

0 commit comments

Comments
 (0)