From 766057750f35671fce5b6b1b98542dd60bcf8a48 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 18 Apr 2020 18:04:14 -0400 Subject: handle pinentry ERR lines --- src/error.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index 8c253c9..806d85c 100644 --- a/src/error.rs +++ b/src/error.rs @@ -70,6 +70,12 @@ pub enum Error { #[snafu(display("failed to load db: {}", source))] LoadDbJson { source: serde_json::Error }, + #[snafu(display("pinentry cancelled"))] + PinentryCancelled, + + #[snafu(display("pinentry error: {}", error))] + PinentryErrorMessage { error: String }, + #[snafu(display("error reading pinentry output: {}", source))] PinentryReadOutput { source: tokio::io::Error }, -- cgit v1.2.3-54-g00ecf