Skip to content

Make more errors verbose #569

Closed
Closed
@killercup

Description

@killercup

In #551 I added the ability to easily add details to std::io::Errors while not changing the type. This can make many error cases much more user friendly:

async-std/src/fs/file.rs

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions