From 8078d976d29aa12819e3f5a781c846d67868b0d6 Mon Sep 17 00:00:00 2001 From: dubiousjim Date: Tue, 10 Mar 2020 15:11:27 -0400 Subject: Add Deno.umask (#4290) --- cli/op_error.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/op_error.rs') 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) } -- cgit v1.2.3