Skip to content

Commit

Permalink
Propagate forge build error message to kontrol build output (#891)
Browse files Browse the repository at this point in the history
* Propagate `forge build` error message to `kontrol build` output

* Remove redundant `"Error"`
  • Loading branch information
palinatolmach authored Nov 22, 2024
1 parent 5f496c3 commit 9d4eb66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kontrol/foundry.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def build(self, metadata: bool) -> None:
"Error: 'forge' command not found. Please ensure that 'forge' is installed and added to your PATH."
) from err
except CalledProcessError as err:
raise RuntimeError("Couldn't forge build!") from err
raise RuntimeError(f"Couldn't forge build! {err.stderr.strip()}") from err

@cached_property
def all_tests(self) -> list[str]:
Expand Down

0 comments on commit 9d4eb66

Please sign in to comment.