summaryrefslogtreecommitdiff
path: root/cli/deno_error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/deno_error.rs')
-rw-r--r--cli/deno_error.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/deno_error.rs b/cli/deno_error.rs
index 41b0d4a94..ebcda1c8e 100644
--- a/cli/deno_error.rs
+++ b/cli/deno_error.rs
@@ -75,6 +75,10 @@ pub fn invalid_address_syntax() -> ErrBox {
StaticError(ErrorKind::InvalidInput, "invalid address syntax").into()
}
+pub fn too_many_redirects() -> ErrBox {
+ StaticError(ErrorKind::TooManyRedirects, "too many redirects").into()
+}
+
pub trait GetErrorKind {
fn kind(&self) -> ErrorKind;
}