Exit with error message when partition table is missing for ESP-IDF

This commit is contained in:
valeros
2020-12-15 18:37:30 +02:00
parent caedd9e9e8
commit a58a358fdc
+5 -1
View File
@@ -835,7 +835,11 @@ def generate_empty_partition_image(binary_path, image_size):
def get_partition_info(pt_path, pt_offset, pt_params):
assert os.path.isfile(pt_path)
if not os.path.isfile(pt_path):
sys.stderr.write(
"Missing partition table file `%s`\n" % os.path.basename(pt_path))
env.Exit(1)
cmd = [
env.subst("$PYTHONEXE"),
os.path.join(FRAMEWORK_DIR, "components", "partition_table", "parttool.py"),