summaryrefslogtreecommitdiff
path: root/cli/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/errors.rs')
-rw-r--r--cli/errors.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/cli/errors.rs b/cli/errors.rs
index a2c3c3441..3873f70ff 100644
--- a/cli/errors.rs
+++ b/cli/errors.rs
@@ -180,7 +180,15 @@ pub fn permission_denied() -> DenoError {
}
pub fn op_not_implemented() -> DenoError {
- new(ErrorKind::BadResource, String::from("op not implemented"))
+ new(ErrorKind::OpNotAvaiable, String::from("op not implemented"))
+}
+
+pub fn worker_init_failed() -> DenoError {
+ // TODO(afinch7) pass worker error data through here
+ new(
+ ErrorKind::WorkerInitFailed,
+ String::from("worker init failed"),
+ )
}
#[derive(Debug)]