aboutsummaryrefslogtreecommitdiffstats
path: root/src/pinentry.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-04-12 04:55:54 -0400
committerJesse Luehrs <doy@tozt.net>2020-04-12 04:55:54 -0400
commit3884ac4c0543329e8da96485e6ae626cb6a16a22 (patch)
treec5552fb86e5920fd7328e9f7c86d0cc8fd3a9c18 /src/pinentry.rs
parent201d2d40cac8760fb69b9282ba2a4f9f7ec82d47 (diff)
downloadrbw-3884ac4c0543329e8da96485e6ae626cb6a16a22.tar.gz
rbw-3884ac4c0543329e8da96485e6ae626cb6a16a22.zip
better error message
Diffstat (limited to 'src/pinentry.rs')
-rw-r--r--src/pinentry.rs2
1 files changed, 1 insertions, 1 deletions
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 {