Skip to content

Commit 4ae31bd

Browse files
committed
[Report][Added] Check for the target PDF/SVG files
- We run the output if any file is missing - Then we check again to make sure the file was generated Related to #927
1 parent 34bf55e commit 4ae31bd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

kibot/out_report.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,9 @@ def run(self, fname):
12171217
is_pcb_print_svg = o.type == 'pcb_print' and o.options.format == 'SVG'
12181218
if any(not os.path.isfile(f) for f in out_files):
12191219
run_output(o)
1220+
if any(not os.path.isfile(f) for f in out_files):
1221+
missing = [f for f in out_files if not os.path.isfile(f)]
1222+
raise KiPlotConfigurationError(f'Output `{o}` failed to generate: {missing}')
12201223
for n, of in enumerate(out_files):
12211224
rel_path = os.path.relpath(of, base_dir)
12221225
comment = o.comment

0 commit comments

Comments
 (0)