diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-03-27 19:48:12 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-03-27 19:48:12 +0100 |
commit | c0e990fe59e6dc4a7abc4ba585c86b18e73b9d59 (patch) | |
tree | 9426d2f0b4cb84ee15a53bd762eb86a49c36078b /openpgp | |
parent | 99e3ca5cb0f993775cd98e94f40c17a78812bf17 (diff) |
openpgp: Improve policy violation wording.
Diffstat (limited to 'openpgp')
-rw-r--r-- | openpgp/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/lib.rs b/openpgp/src/lib.rs index 44480a45..26b05473 100644 --- a/openpgp/src/lib.rs +++ b/openpgp/src/lib.rs @@ -304,8 +304,8 @@ pub enum Error { /// /// The optional time is the time at which the operation was /// determined to no longer be secure. - #[error("Not secure{}: {0}", - .1.as_ref().map(|t| format!(" as of {}", crate::fmt::time(t))) + #[error("{0} is not considered secure{}", + .1.as_ref().map(|t| format!(" since {}", crate::fmt::time(t))) .unwrap_or("".into()))] PolicyViolation(String, Option<std::time::SystemTime>), |