Skip to content

Commit c68a5ce

Browse files
aumetrachipshort
andauthored
Update contracts/staking/src/state.rs
Co-authored-by: Christoph Otter <[email protected]>
1 parent ebb6e57 commit c68a5ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/staking/src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub struct Supply {
8787
pub fn load_item<T: DeserializeOwned>(storage: &dyn Storage, key: &[u8]) -> StdResult<T> {
8888
storage
8989
.get(&to_length_prefixed(key))
90-
.ok_or_else(|| StdError::msg(type_name::<T>()))
90+
.ok_or_else(|| StdError::msg(format_args!("{} not found", type_name::<T>())))
9191
.and_then(from_json)
9292
}
9393

0 commit comments

Comments
 (0)