Skip to content

Commit 7dd362b

Browse files
author
Ludo Galabru
committed
fix: unexpected expectation
1 parent a3f745c commit 7dd362b

File tree

1 file changed

+1
-1
lines changed
  • components/chainhook-cli/src/service

1 file changed

+1
-1
lines changed

components/chainhook-cli/src/service/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ fn load_predicates_from_redis(
379379

380380
let chainhooks_to_load: Vec<String> = redis_con
381381
.scan_match("chainhook:*:*:*")
382-
.expect("unable to retrieve prunable entries")
382+
.map_err(|e| format!("unable to connect to redis: {}", e.to_string()))?
383383
.into_iter()
384384
.collect();
385385

0 commit comments

Comments
 (0)