Skip to content

Commit

Permalink
Catch exception when no tool or flow is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Aug 5, 2024
1 parent 6b794fb commit 780a311
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fusesoc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,11 @@ def run(fs, args):
# Unconditionally clean out the work root on fresh builds
# if we use the old tool API
if do_configure and not core.get_flow(flags):
prepare_work_root(fs.get_work_root(core, flags))
try:
prepare_work_root(fs.get_work_root(core, flags))
except RuntimeError as e:
logger.error(e)
exit(1)

# Frontend/backend separation

Expand Down

0 comments on commit 780a311

Please sign in to comment.