summaryrefslogtreecommitdiff
path: root/cli/op_error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/op_error.rs')
-rw-r--r--cli/op_error.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/cli/op_error.rs b/cli/op_error.rs
index 263363122..32ad9c0f7 100644
--- a/cli/op_error.rs
+++ b/cli/op_error.rs
@@ -174,7 +174,13 @@ impl OpError {
}
pub fn invalid_domain_error() -> OpError {
- OpError::new(ErrorKind::TypeError, "Invalid domain.".to_string())
+ OpError::type_error("Invalid domain.".to_string())
+ }
+
+ pub fn permission_escalation_error() -> OpError {
+ OpError::permission_denied(
+ "Arguments escalate parent permissions.".to_string(),
+ )
}
}