Skip to content

Commit

Permalink
🐛 Better error message for File not found on fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
noam987 authored Feb 10, 2024
1 parent 4efc0c0 commit 10b38af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pros/cli/conductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ def fetch(query: c.BaseTemplate):
else:
if template_file:
logger(__name__).debug(f'Template file exists but is not a valid template: {template_file}')
else:
logger(__name__).error(f'Template not found: {query.name}')
return -1
template = c.Conductor().resolve_template(query, allow_offline=False)
logger(__name__).debug(f'Template from resolved query: {template}')
if template is None:
Expand Down

0 comments on commit 10b38af

Please sign in to comment.