diff options
-rw-r--r-- | src/error.rs | 2 | ||||
-rw-r--r-- | src/pinentry.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs index 6a5244f..71c8285 100644 --- a/src/error.rs +++ b/src/error.rs @@ -10,7 +10,7 @@ pub enum Error { Decrypt { source: block_modes::BlockModeError }, #[snafu(display("failed to parse pinentry output ({:?})", out,))] - FailedToParsePinentry { out: Vec<u8> }, + FailedToParsePinentry { out: String }, // no Error impl // #[snafu(display("failed to expand with hkdf: {}", source))] diff --git a/src/pinentry.rs b/src/pinentry.rs index 769b8d0..a8d607b 100644 --- a/src/pinentry.rs +++ b/src/pinentry.rs @@ -71,7 +71,7 @@ async fn read_password< break; } else { return Err(Error::FailedToParsePinentry { - out: data.to_vec(), + out: String::from_utf8_lossy(data).to_string(), }); } } else { |