core/src/identity: Fix build with secp256k1 disabled (#2057)

This commit is contained in:
Artem Vorotnikov
2021-04-26 17:53:50 +03:00
committed by GitHub
parent 29d969be34
commit 5ee003b76e
5 changed files with 14 additions and 5 deletions

View File

@ -208,7 +208,7 @@ impl PublicKey {
#[cfg(not(feature = "secp256k1"))]
keys_proto::KeyType::Secp256k1 => {
log::debug!("support for secp256k1 was disabled at compile-time");
Err("Unsupported".to_string().into())
Err(DecodingError::new("Unsupported"))
}
}
}