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, 1 insertions, 5 deletions
diff --git a/crates/shirabe/src/util/auth_helper.rs b/crates/shirabe/src/util/auth_helper.rs
index a323c37e..69a84857 100644
--- a/crates/shirabe/src/util/auth_helper.rs
+++ b/crates/shirabe/src/util/auth_helper.rs
@@ -80,11 +80,7 @@ impl AuthHelper {
) {
return Ok(PhpMixed::String(input));
}
- Err(RuntimeException {
- message: "Please answer (y)es or (n)o".to_string(),
- code: 0,
- }
- .into())
+ Err(RuntimeException::new("Please answer (y)es or (n)o".to_string()).into())
}),
None,
PhpMixed::String("y".to_string()),