We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d89883 commit 121c94dCopy full SHA for 121c94d
infrahub_sdk/ctl/utils.py
@@ -187,6 +187,9 @@ def load_yamlfile_from_disk_and_exit(
187
has_error = False
188
try:
189
data_files = file_type.load_from_disk(paths=paths)
190
+ if not data_files:
191
+ console.print("[red]No valid files found to load.")
192
+ raise typer.Exit(1)
193
except FileNotValidError as exc:
194
console.print(f"[red]{exc.message}")
195
raise typer.Exit(1) from exc
0 commit comments