Skip to content

Commit 1fc4def

Browse files
authored
Merge pull request #370 from erickt/fix-error
Actually include roles in error messages
2 parents 9caca79 + afe91e4 commit 1fc4def

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tuf/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "tuf"
33
edition = "2018"
4-
version = "0.3.0-beta8"
4+
version = "0.3.0-beta9"
55
authors = [ "heartsucker <[email protected]>", "Erick Tryzelaar <[email protected]>" ]
66
description = "Library for The Update Framework (TUF)"
77
homepage = "https://github.com/theupdateframework/rust-tuf"

tuf/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub enum Error {
120120
MetadataVersionMustBeSmallerThanMaxU32(MetadataPath),
121121

122122
/// The metadata was not signed with enough valid signatures.
123-
#[error("metadata {0} signature threshold not met: {number_of_valid_signatures}/{threshold}")]
123+
#[error("metadata {role} signature threshold not met: {number_of_valid_signatures}/{threshold}")]
124124
MetadataMissingSignatures {
125125
/// The signed metadata.
126126
role: MetadataPath,
@@ -131,7 +131,7 @@ pub enum Error {
131131
},
132132

133133
/// Attempted to update metadata with an older version.
134-
#[error("attempted to roll back metadata {0} from version {trusted_version} to {new_version}")]
134+
#[error("attempted to roll back metadata {role} from version {trusted_version} to {new_version}")]
135135
AttemptedMetadataRollBack {
136136
/// The metadata.
137137
role: MetadataPath,

0 commit comments

Comments
 (0)