vars/generate: print the files that were found when files are missing

this helps fixing typos in the generator scripts
This commit is contained in:
Jörg Thalheim
2025-08-13 11:31:09 +02:00
parent 414952dfa3
commit 1177e84dcc

View File

@@ -357,6 +357,11 @@ def _execute_generator(
if not secret_file.is_file():
msg = f"did not generate a file for '{file.name}' when running the following command:\n"
msg += str(final_script)
# list all files in the output directory
if tmpdir_out.is_dir():
msg += "\nOutput files:\n"
for f in tmpdir_out.iterdir():
msg += f" - {f.name}\n"
raise ClanError(msg)
if file.secret:
file_path = secret_vars_store.set(