diff options
-rw-r--r-- | cli/cache/disk_cache.rs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/cli/cache/disk_cache.rs b/cli/cache/disk_cache.rs index 799610d5f..042064463 100644 --- a/cli/cache/disk_cache.rs +++ b/cli/cache/disk_cache.rs @@ -42,9 +42,18 @@ impl DiskCache { return Ok(()); } fs::create_dir_all(path).map_err(|e| { - io::Error::new(e.kind(), format!( - "Could not create TypeScript compiler cache location: {path:?}\nCheck the permission of the directory." - )) + io::Error::new( + e.kind(), + format!( + concat!( + "Could not create TypeScript compiler cache location: {}\n", + "Check the permission of the directory.\n", + "{:#}", + ), + path.display(), + e + ), + ) }) } |