From 1f635b1eac9ff04c4c7bf57067f78befd2f518bf Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 22 Mar 2023 13:59:55 -0400 Subject: fix: include error in message about not being able to create the TypeScript cache (#18356) --- cli/cache/disk_cache.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'cli') 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 + ), + ) }) } -- cgit v1.2.3