diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2021-12-23 00:25:06 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-22 14:25:06 +0100 |
commit | 8547a37132752cf6a979237c5a52a7bf16a4e833 (patch) | |
tree | 10e14c5aa8675bf75c8aa66bf7bf1f7de6948fee /cli/cache.rs | |
parent | ac06797fa8607f2e15477fe1b038215740a5747d (diff) |
chore: update deno_graph and deno_doc (#13173)
Diffstat (limited to 'cli/cache.rs')
-rw-r--r-- | cli/cache.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/cache.rs b/cli/cache.rs index 2c94172b8..c5fd0a8a0 100644 --- a/cli/cache.rs +++ b/cli/cache.rs @@ -1,6 +1,7 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. use crate::disk_cache::DiskCache; +use crate::errors::get_error_class_name; use crate::file_fetcher::FileFetcher; use deno_core::error::AnyError; @@ -157,6 +158,8 @@ impl Loader for FetchCacher { if err.kind() == std::io::ErrorKind::NotFound { return Ok(None); } + } else if get_error_class_name(&err) == "NotFound" { + return Ok(None); } Err(err) }, |