-
Notifications
You must be signed in to change notification settings - Fork 341
Closed
Description
In #551 I added the ability to easily add details to std::io::Error
s while not changing the type. This can make many error cases much more user friendly:
Lines 117 to 118 in b3d30de
std::fs::File::open(&path) | |
.context(|| format!("Could not open {}", path.display())) |
I only added this in two places so far, though, File::open
and File::create
. Let's use this issue to track more places we should do this!
yoshuawuyts, gilescope, zzeroo and 1 moregilescope and zzeroo
Metadata
Metadata
Assignees
Labels
No labels