Skip to content

Commit

Permalink
conda build: use exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Dec 4, 2023
1 parent 1790c34 commit 6055c74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion planemo/commands/cmd_conda_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ def cli(ctx: "PlanemoCliContext", paths: Tuple[str], **kwds) -> None:
# Force conda_use_local for building...
kwds["conda_use_local"] = True
conda_context = build_conda_context(ctx, handle_auto_init=True, **kwds)
if conda_context.exec_command("build", paths) != 0:
exit_code = conda_context.exec_command("build", paths)
if exit_code:
error(f"Failed to build [{' '.join(paths)}] with conda.")
ctx.exit(exit_code)

0 comments on commit 6055c74

Please sign in to comment.