You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnErr(anyhow!("Failed to process response {e}"));
211
+
}
212
+
};
203
213
204
214
self.process_pj_response(psbt)?;
205
215
Ok(())
@@ -241,9 +251,21 @@ impl AppTrait for App {
241
251
};
242
252
letmut interrupt = self.interrupt.clone();
243
253
tokio::select! {
244
-
res = self.process_sender_session(sender_state,&persister) => return res,
254
+
res = self.process_sender_session(sender_state,&persister) => {
255
+
match res {
256
+
Ok(()) => returnOk(()),
257
+
Err(err) => {
258
+
let id = persister.session_id();
259
+
println!("Session {id} failed. Run `payjoin-cli fallback {id}` to broadcast the original transaction.");
260
+
returnErr(err);
261
+
}
262
+
}
263
+
},
245
264
_ = interrupt.changed() => {
246
-
println!("Interrupted. Call `send` with the same arguments to resume this session or `resume` to resume all sessions.");
265
+
let id = persister.session_id();
266
+
println!(
267
+
"Session {id} interrupted. Call `send` again to resume, `resume` to resume all sessions, or `payjoin-cli fallback {id}` to broadcast the original transaction."
0 commit comments