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 cc197c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: make setup
- uses: software-mansion/setup-scarb@v1
- uses: asdf-vm/actions/install@v3
- run: asdf install
# Build artifacts
- name: Compile all the cairo files
run: make build
Expand Down Expand Up @@ -153,7 +154,7 @@ jobs:
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install asdf & tools # For multiple versions of scarb - reads from .tool-versions and installs them
- name: Install asdf & tools #
uses: asdf-vm/actions/install@v3
- name: Load cached katana
id: cached-katana
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 cc197c8

Please sign in to comment.