Skip to content

Commit

Permalink
pcli: improve error message for delegation failure to suggest pcli tx…
Browse files Browse the repository at this point in the history
… sweep
  • Loading branch information
aubrika committed May 22, 2024
1 parent 7611ac3 commit 5ad7180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bin/pcli/src/command/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ impl TxCmd {
.delegate(epoch, unbonded_amount, rate_data)
.plan(app.view(), AddressIndex::new(*source))
.await
.context("can't plan delegation")?;
.context("can't plan delegation, try running pcli tx sweep and try again")?;

app.build_and_submit_transaction(plan).await?;
}
Expand Down

0 comments on commit 5ad7180

Please sign in to comment.