We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2aaf73 commit 2d88a5bCopy full SHA for 2d88a5b
1 file changed
rusk-wallet/src/rues.rs
@@ -142,7 +142,12 @@ impl HttpClient {
142
let error = String::from_utf8(error.to_vec())
143
.unwrap_or("unparsable error".into());
144
145
- let msg = format!("{status}: {error}");
+ let msg = if error.contains("Value spent larger than account holds")
146
+ {
147
+ "Balance is not enough to cover the transaction max fees".into()
148
+ } else {
149
+ error
150
+ };
151
152
Err(Error::Rusk(msg))
153
} else {
0 commit comments