fix(deno_dir): better error message (#5120)

Add better error messages when a cache subdirectory in 
`DENO_DIR` cannot be created.
This commit is contained in:
Yoshiya Hinosawa 2020-05-07 21:32:57 +09:00 committed by GitHub
parent 761b7efb3b
commit dabe88f854
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 45 additions and 15 deletions

View file

@ -661,7 +661,7 @@ mod tests {
fn setup_file_fetcher(dir_path: &Path) -> SourceFileFetcher {
SourceFileFetcher::new(
HttpCache::new(&dir_path.to_path_buf().join("deps")).unwrap(),
HttpCache::new(&dir_path.to_path_buf().join("deps")),
true,
vec![],
false,