Skip to content

Commit

Permalink
CRC: log the error from process inbound messages
Browse files Browse the repository at this point in the history
Signed-off-by: Jacinta Ferrant <[email protected]>
  • Loading branch information
jferrant committed Jan 9, 2024
1 parent 926885a commit 3910d02
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions stacks-signer/src/runloop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,18 @@ impl<C: Coordinator> RunLoop<C> {
let mut outbound_messages = self
.signing_round
.process_inbound_messages(&inbound_messages)
.unwrap_or_default();
.unwrap_or_else(|e| {
error!("Failed to process inbound messages as a signer: {e}");
vec![]
});
// Next process the message as the coordinator
let (messages, results) = self
.coordinator
.process_inbound_messages(&inbound_messages)
.unwrap_or_default();
.unwrap_or_else(|e| {
error!("Failed to process inbound messages as a coordinator: {e}");
(vec![], vec![])
});
outbound_messages.extend(messages);
(outbound_messages, results)
}
Expand Down

0 comments on commit 3910d02

Please sign in to comment.