Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] CLI error handling message #3345

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Conversation

joske
Copy link
Contributor

@joske joske commented Jul 3, 2024

Fixes #3286

Now prints the following:

cargo run -- developer execute  --private-key APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH --query "http://0.0.0.0:3030" --broadcast "http://0.0.0.0:3030/mainnet/transaction/broadcast" credits.aleo transfer_public
   Compiling snarkos-cli v2.2.7 (/home/jos/Projects/snarkOS/cli)
   Compiling snarkos v2.2.7 (/home/jos/Projects/snarkOS)
    Finished dev [optimized] target(s) in 11.03s
     Running `target/debug/snarkos developer execute --private-key APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH --query 'http://0.0.0.0:3030' --broadcast 'http://0.0.0.0:3030/mainnet/transaction/broadcast' credits.aleo transfer_public`

📦 Creating execution transaction for 'credits.aleo/transfer_public'...

⚠️  Failed to fetch program credits.aleo: Response[status: 404, status_text: Not Found, url: http://0.0.0.0:3030/mainnet/program/credits.aleo]

cli/src/commands/developer/mod.rs Outdated Show resolved Hide resolved
@raychu86 raychu86 changed the title fix: empty error when using wrong network [fix] CLI error handling message Jul 15, 2024
Co-authored-by: Raymond Chu <[email protected]>
@zosorock zosorock merged commit 617584b into AleoNet:staging Oct 22, 2024
22 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Give a proper error message when developer execute fails
3 participants