diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-10-28 00:22:53 +0900 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2019-10-27 11:22:53 -0400 |
commit | efd7e78af3fc086dfdec51738905665d38d08eb4 (patch) | |
tree | bb921f7d960f33c6d4d13c043a7a45ebe74290ba /cli/deno_error.rs | |
parent | 2598f9c68d8983934c73c135c9d277b33c98e333 (diff) |
Use web standard Permissions API (#3200)
Diffstat (limited to 'cli/deno_error.rs')
-rw-r--r-- | cli/deno_error.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/deno_error.rs b/cli/deno_error.rs index 2c53c84f7..346149cd1 100644 --- a/cli/deno_error.rs +++ b/cli/deno_error.rs @@ -96,6 +96,10 @@ pub fn too_many_redirects() -> ErrBox { StaticError(ErrorKind::TooManyRedirects, "too many redirects").into() } +pub fn type_error(msg: String) -> ErrBox { + DenoError::new(ErrorKind::TypeError, msg).into() +} + pub trait GetErrorKind { fn kind(&self) -> ErrorKind; } |