mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
fix: include error in message about not being able to create the TypeScript cache (#18356)
This commit is contained in:
parent
42d13c4e6a
commit
1f635b1eac
1 changed files with 12 additions and 3 deletions
15
cli/cache/disk_cache.rs
vendored
15
cli/cache/disk_cache.rs
vendored
|
@ -42,9 +42,18 @@ impl DiskCache {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
fs::create_dir_all(path).map_err(|e| {
|
fs::create_dir_all(path).map_err(|e| {
|
||||||
io::Error::new(e.kind(), format!(
|
io::Error::new(
|
||||||
"Could not create TypeScript compiler cache location: {path:?}\nCheck the permission of the directory."
|
e.kind(),
|
||||||
))
|
format!(
|
||||||
|
concat!(
|
||||||
|
"Could not create TypeScript compiler cache location: {}\n",
|
||||||
|
"Check the permission of the directory.\n",
|
||||||
|
"{:#}",
|
||||||
|
),
|
||||||
|
path.display(),
|
||||||
|
e
|
||||||
|
),
|
||||||
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue