diff options
author | dubiousjim <dubiousjim@gmail.com> | 2020-03-10 15:11:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 15:11:27 -0400 |
commit | 8078d976d29aa12819e3f5a781c846d67868b0d6 (patch) | |
tree | 3ec7786dd9b7e787c27f58e2041110e6fca86e2b /cli/op_error.rs | |
parent | 6443e4aed16868c17111a56634aa733211430f46 (diff) |
Add Deno.umask (#4290)
Diffstat (limited to 'cli/op_error.rs')
-rw-r--r-- | cli/op_error.rs | 4 |
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) } |