Skip to content

Commit d14c38c

Browse files
committed
quote file name in errors
1 parent 3bd5dff commit d14c38c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/file_cache.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ impl<T: AsyncFromStrWithState> FileCache<T> {
174174
let cached: Cached<T> = static_file.make_fresh();
175175
Ok(cached)
176176
} else {
177-
Err(e).with_context(|| format!("Couldn't load {} into cache", path.display()))
177+
Err(e)
178+
.with_context(|| format!("Couldn't load \"{}\" into cache", path.display()))
178179
}
179180
}
180181
Err(e) => {

0 commit comments

Comments
 (0)