mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-25 15:19:58 -07:00
global: improve errors
This commit is contained in:
@@ -14,7 +14,7 @@ impl Query {
|
||||
let max_height_usize: usize = max_height.into();
|
||||
|
||||
if max_height_usize == 0 {
|
||||
return Err(Error::Str("No blocks indexed"));
|
||||
return Err(Error::NotFound("No blocks indexed".into()));
|
||||
}
|
||||
|
||||
let target = timestamp;
|
||||
|
||||
Reference in New Issue
Block a user