Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
Add contract name in compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed Aug 28, 2024
1 parent dda6f7f commit 1b98b66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ jobs:
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: make setup
- uses: asdf-vm/actions/install@v3
- uses: software-mansion/setup-scarb@v1
with:
tool-versions: .tool-versions
# Build artifacts
- name: Compile all the cairo files
run: make build
Expand Down
4 changes: 3 additions & 1 deletion kakarot_scripts/utils/starknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,9 @@ def compile_contract(contract):
)

if output.returncode != 0:
raise RuntimeError(output.stderr)
raise RuntimeError(
f"❌ {contract['contract_name']} raised:\n{output.stderr}.\nOutput:\n{output.stdout}"
)

elapsed = datetime.now() - start
logger.info(
Expand Down

0 comments on commit 1b98b66

Please sign in to comment.