mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-09-04 01:09:55 +00:00
Friendlier error if a file doesn't exist
Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -205,6 +205,8 @@ def check_generated_files(generation_scripts: List[GenerationScript], root: Path
|
||||
for generation_script in generation_scripts:
|
||||
for file in generation_script.files:
|
||||
file = root / file
|
||||
if not file.exists():
|
||||
raise Exception(f"Expected generated file does not exist: {file}")
|
||||
bak_file = file.with_name(file.name + ".bak")
|
||||
if bak_file.exists():
|
||||
bak_file.unlink()
|
||||
|
||||
Reference in New Issue
Block a user