Skip to content

Commit e2c33a9

Browse files
aumetrachipshort
andauthored
Update contracts/ibc-callbacks/src/state.rs
Co-authored-by: Christoph Otter <[email protected]>
1 parent fb99869 commit e2c33a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/ibc-callbacks/src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub fn save_stats(storage: &mut dyn Storage, counts: &CallbackStats) -> StdResul
2929
fn load_item<T: DeserializeOwned>(storage: &dyn Storage, key: &[u8]) -> StdResult<T> {
3030
storage
3131
.get(&to_length_prefixed(key))
32-
.ok_or_else(|| StdError::msg(type_name::<T>()))
32+
.ok_or_else(|| StdError::msg(format_args!("{} not found", type_name::<T>())))
3333
.and_then(from_json)
3434
}
3535

0 commit comments

Comments
 (0)