Skip to content

Misleading error messages in rename #60

Closed
@luispedro

Description

@luispedro

The rename function always mentions the first argument even if the issue is with the second one. For example:

rename "file.txt" "directory-which-does-not-exist/file.txt"

if file.txt exists, but directory-which-does-not-exist does not, the error message will say:

file.txt: rename: does not exist (No such file or directory)

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