]> git.bitcoin.ninja Git - ldk-sample/commitdiff
Update payment error messages to better match reality
authorMatt Corallo <git@bluematt.me>
Wed, 5 May 2021 00:00:04 +0000 (00:00 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 8 May 2021 22:57:18 +0000 (22:57 +0000)
src/main.rs

index 48048b4f493bc8fe40e0f4f84a67c9abba0182c4..f51528b7b57832b3caf279b2f7fd856b6377de87 100644 (file)
@@ -220,9 +220,9 @@ async fn handle_ldk_events(
                                                hex_utils::hex_str(&payment_hash.0)
                                        );
                                        if rejected_by_dest {
-                                               println!("rejected by destination node");
+                                               println!("re-attempting the payment will not succeed");
                                        } else {
-                                               println!("route failed");
+                                               println!("payment may be retried");
                                        }
                                        print!("> ");
                                        io::stdout().flush().unwrap();