foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.34k stars 1.76k forks source link

chore: make environment variable error nicer #9353

Closed DaniPopes closed 5 days ago

DaniPopes commented 5 days ago

Before: [FAIL: setup failed: vm.createSelectFork: Failed to resolve env var `ETH_NODE_URI_MAINNET` in `${ETH_NODE_URI_MAINNET}`: environment variable not found] setUp() (gas: 0)

After: [FAIL: setup failed: vm.createSelectFork: environment variable `ETH_NODE_URI_MAINNET` not found] setUp() (gas: 0)

DaniPopes commented 5 days ago

Forge-std failure: https://github.com/foundry-rs/forge-std/pull/632