Skip to content

touch no-file/ fails with a sub optimal error #2639

@sylvestre

Description

@sylvestre
$ touch no-file/
touch: cannot touch 'no-file/': Other

GNU:

$ touch no-file/
touch: setting times of 'no-file/': No such file or directory

We should probably mix the two and have

touch: cannot touch 'no-file/': No such file or directory

The code is in:

show!(e.map_err_context(|| format!("cannot touch '{}'", path.display())));

@miDeb Any idea how to implement that? thanks :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions