esp-idf/components/partition_table
Angus Gratton a91de43537 parttool: Avoid unnecessary exception backtrace for legitimate errors
Previous version used exception handling for program control flow,
which makes for long and confusing backtrace messages if an error
occurs while parsing the CSV (as it also prints the phony error that
occurred while trying to parse as a binary, then prints
"During handling of the above exception, another exception occurred:",
then prints the real error).

Use the same heuristic that is applied in gen_esp32_part, instead.

Also, avoid printing the entire backtrace if the error is a gen_esp32_part
InputError, same as gen_esp32part does.

Found while looking into https://github.com/espressif/esp-idf/issues/4474
2019-12-16 18:24:10 +11:00
..
test components: use new component registration api 2019-06-21 19:53:29 +08:00
test_gen_esp32part_host partition_table: implement Python API for parttool 2019-06-11 13:17:14 +08:00
CMakeLists.txt cmake: fix partition_table cmake when using md5 checksum 2019-11-08 02:59:22 +00:00
component.mk build system: Use component.mk for all components, refactor bootloader build 2017-07-19 09:10:48 +10:00
gen_empty_partition.py partition_table: implement Python API for parttool 2019-06-11 13:17:14 +08:00
gen_esp32part.py bootloader: Add support of anti-rollback 2019-02-14 18:51:43 +08:00
Kconfig.projbuild Fix Kconfig issues discovered by upstream Kconfiglib 2019-09-23 16:10:57 +02:00
Makefile.projbuild partition_table,app_update: use config partition table offset 2019-06-11 13:17:14 +08:00
partitions_singleapp_coredump.csv global: update note in the partition tables 2019-07-27 10:28:16 +02:00
partitions_singleapp.csv global: update note in the partition tables 2019-07-27 10:28:16 +02:00
partitions_two_ota_coredump.csv global: update note in the partition tables 2019-07-27 10:28:16 +02:00
partitions_two_ota.csv global: update note in the partition tables 2019-07-27 10:28:16 +02:00
parttool.py parttool: Avoid unnecessary exception backtrace for legitimate errors 2019-12-16 18:24:10 +11:00
project_include.cmake partition_table: implement Python API for parttool 2019-06-11 13:17:14 +08:00