Skip to content
Snippets Groups Projects
Commit da107599 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

setup-bin-env: raise if no bin env was found/created

This also uses click to print stuff because that's our context
parent 693ceb47
No related branches found
No related tags found
1 merge request!37general improvements
......@@ -158,7 +158,9 @@
den = den_mod.PoulpeDen(den_root)
bin_env_spec = scheduling.BinEnvSpec.from_piece(bin_env_spec)
bin_env = scheduling.ensure_bin_env(den, bin_env_spec)
print(bin_env)
if bin_env is None:
raise click.ClickException("failed to setup bin-env")
click.echo(bin_env)
@poulpe_cli.command()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment