Skip to content

Commit 9568eb6

Browse files
authored
fix(cast): handle errors in list_local_senders() (#12419)
Update list.rs
1 parent e692635 commit 9568eb6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

crates/cast/src/cmd/wallet/list.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,14 @@ impl ListArgs {
5858
|| self.all
5959
|| (!self.ledger && !self.trezor && !self.aws && !self.gcp)
6060
{
61-
let _ = self.list_local_senders();
61+
match self.list_local_senders() {
62+
Ok(()) => {}
63+
Err(e) => {
64+
if !self.all {
65+
sh_err!("{}", e)?;
66+
}
67+
}
68+
}
6269
}
6370

6471
// Create options for multi wallet - ledger, trezor and AWS

0 commit comments

Comments
 (0)