aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util/auth_helper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/util/auth_helper.rs')
-rw-r--r--crates/shirabe/src/util/auth_helper.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/shirabe/src/util/auth_helper.rs b/crates/shirabe/src/util/auth_helper.rs
index 0a2dbf86..8a621eb1 100644
--- a/crates/shirabe/src/util/auth_helper.rs
+++ b/crates/shirabe/src/util/auth_helper.rs
@@ -168,7 +168,7 @@ impl AuthHelper {
"After authorizing your token, confirm that you would like to retry the request"
.to_string(),
PhpMixed::Null,
- );
+ )?;
return Ok(PromptAuthResult {
retry: true,
@@ -420,7 +420,9 @@ impl AuthHelper {
true,
io_interface::NORMAL,
);
- let username = self.io.ask(" Username: ".to_string(), PhpMixed::Null);
+ let username = self
+ .io
+ .ask(" Username: ".to_string(), PhpMixed::Null)?;
let password = self.io.ask_and_hide_answer(" Password: ".to_string());
self.io.borrow_mut().set_authentication(
origin.to_string(),