diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-03-22 13:59:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 13:59:55 -0400 |
commit | 1f635b1eac9ff04c4c7bf57067f78befd2f518bf (patch) | |
tree | 84295b09c098b71b825d1c39fc6588345ae2a44d /cli/cache/disk_cache.rs | |
parent | 42d13c4e6a95a995ea1383d8fd9baffab63804d9 (diff) |
fix: include error in message about not being able to create the TypeScript cache (#18356)
Diffstat (limited to 'cli/cache/disk_cache.rs')
-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 + ), + ) }) } |