We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebb6e57 commit c68a5ceCopy full SHA for c68a5ce
contracts/staking/src/state.rs
@@ -87,7 +87,7 @@ pub struct Supply {
87
pub fn load_item<T: DeserializeOwned>(storage: &dyn Storage, key: &[u8]) -> StdResult<T> {
88
storage
89
.get(&to_length_prefixed(key))
90
- .ok_or_else(|| StdError::msg(type_name::<T>()))
+ .ok_or_else(|| StdError::msg(format_args!("{} not found", type_name::<T>())))
91
.and_then(from_json)
92
}
93
0 commit comments