mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 11:39:22 +00:00
make the error more readable when node fails to respond (#1570)
Some checks are pending
Cache Dependencies / test (push) Waiting to run
Some checks are pending
Cache Dependencies / test (push) Waiting to run
This commit is contained in:
parent
a2549b42b0
commit
9da9bee384
1 changed files with 4 additions and 1 deletions
|
@ -110,7 +110,10 @@ Future<PendingTransactionDescription> createTransactionSync(
|
||||||
})();
|
})();
|
||||||
|
|
||||||
if (error != null) {
|
if (error != null) {
|
||||||
final message = error;
|
String message = error;
|
||||||
|
if (message.contains("RPC error")) {
|
||||||
|
message = "Invalid node response, please try again or switch node\n\ntrace: $message";
|
||||||
|
}
|
||||||
throw CreationTransactionException(message: message);
|
throw CreationTransactionException(message: message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue