Skip to content

Commit

Permalink
error gracefully and propogate errors up caller stack
Browse files Browse the repository at this point in the history
  • Loading branch information
TalDerei committed Jan 29, 2025
1 parent 8b135e8 commit 3e143f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/component/sct/src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl TryFrom<pb::CommitmentSource> for CommitmentSource {
.tx_hash
.map(|x| x.try_into())
.transpose()?
.expect("failed to retrieve LQT transaction hash"),
.ok_or_else(|| anyhow!("missing LQT transaction hash"))?,
},
})
}
Expand Down

0 comments on commit 3e143f3

Please sign in to comment.