From 3e143f39073f8ecaee092d6149f37e17afa4ed56 Mon Sep 17 00:00:00 2001 From: Tal Derei Date: Wed, 29 Jan 2025 13:07:09 -0800 Subject: [PATCH] error gracefully and propogate errors up caller stack --- crates/core/component/sct/src/source.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core/component/sct/src/source.rs b/crates/core/component/sct/src/source.rs index fbcafff8db..fa49916bdb 100644 --- a/crates/core/component/sct/src/source.rs +++ b/crates/core/component/sct/src/source.rs @@ -136,7 +136,7 @@ impl TryFrom 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"))?, }, }) }