diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-07-23 00:52:40 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-07-22 18:52:40 -0400 |
commit | 70de8dd51d465ea2016d6bb7c0728111f4493668 (patch) | |
tree | 5b086b781a3503ce33aa5e83a55f4517e414a67e /cli/deno_error.rs | |
parent | 9c22961b6a06a75dad68bad87328857a9f7a55dc (diff) |
save headers for all intermediate redirects (#2677)
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 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; } |