diff --git a/esp_idf_panic_decoder/pc_address_decoder.py b/esp_idf_panic_decoder/pc_address_decoder.py index dc6144a..7161313 100644 --- a/esp_idf_panic_decoder/pc_address_decoder.py +++ b/esp_idf_panic_decoder/pc_address_decoder.py @@ -61,4 +61,7 @@ def lookup_pc_address(self, pc_addr: str, is_rom: bool = False) -> Optional[str] return decoded if not is_rom else decoded.replace('at ??:?', 'in ROM') except OSError as err: red_print(f'{" ".join(cmd)}: {err}') + except subprocess.CalledProcessError as err: + red_print(f'{" ".join(cmd)}: {err}') + red_print('ELF file is missing or has changed, the build folder was probably modified.') return None