Skip to content

Commit

Permalink
Merge pull request #74 from fortanix/ud/version-bump-list-keys-feature
Browse files Browse the repository at this point in the history
Version bump in openpgp-dsm for list-keys feature
removed unwrap from KeyMetadata impl
  • Loading branch information
uddhav-dave authored Feb 21, 2023
2 parents 6307b89 + 9fc87eb commit 69eb7ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion openpgp-dsm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "openpgp-dsm"
version = "1.1.0"
version = "1.2.0"
authors = ["zugzwang <francisco.vialprado@fortanix.com>"]
edition = "2018"

Expand Down
5 changes: 3 additions & 2 deletions openpgp-dsm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,9 @@ impl KeyMetadata {
match serde_json::from_str(&dict[DSM_LABEL_PGP]) {
Ok(key_md) => Ok(key_md),
Err(e) => {
KeyMetadata::print_metadata_for_pre_0_3_0(&dict[DSM_LABEL_PGP]).unwrap();
Err(anyhow::anyhow!("failed to read metadata: {:?}", e))
KeyMetadata::print_metadata_for_pre_0_3_0(&dict[DSM_LABEL_PGP])
.map_err(|e| anyhow::anyhow!("Failed to read metadata: {:?}", e))?;
Err(anyhow::anyhow!("Failed to parse Sobject: {:?}", e))

}
}
Expand Down

0 comments on commit 69eb7ab

Please sign in to comment.