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.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/op_error.rs b/cli/op_error.rs
index a2cf03a66..bebfd2e72 100644
--- a/cli/op_error.rs
+++ b/cli/op_error.rs
@@ -71,6 +71,10 @@ impl OpError {
Self::new(ErrorKind::NotFound, msg)
}
+ pub fn not_implemented() -> Self {
+ Self::other("not implemented".to_string())
+ }
+
pub fn other(msg: String) -> Self {
Self::new(ErrorKind::Other, msg)
}