Skip to content

paste: include file name in open errors - #16030

Open
Logic769 wants to merge 2 commits into
uutils:mainfrom
Logic769:paste-open-error-filename
Open

Logic769 wants to merge 2 commits into
uutils:mainfrom
Logic769:paste-open-error-filename

Conversation

@Logic769

Copy link
Copy Markdown
Contributor

Problem

When paste fails to open an input file, the error did not include the file name, making it unclear which argument failed.

Change

Wrap the open error and include the file name in the diagnostic. Added a regression test for a missing file.

Closes #15983

@Logic769
Logic769 force-pushed the paste-open-error-filename branch from 31e3171 to 6c15984 Compare October 30, 2026 13:02
Comment thread src/uu/paste/locales/en-US.ftl Resolved
Comment thread src/uu/paste/src/paste.rs Resolved
Comment thread src/uu/paste/src/paste.rs Resolved
Comment thread tests/by-util/test_paste.rs Resolved
Comment thread tests/by-util/test_paste.rs Resolved
@sylvestre
sylvestre force-pushed the paste-open-error-filename branch from aa90d89 to 1bbacc2 Compare November 3, 2026 01:08
@sylvestre

Copy link
Copy Markdown
Contributor

a bunch of jobs are failing

@Logic769
Logic769 force-pushed the paste-open-error-filename branch from 1bbacc2 to 5dbe506 Compare November 3, 2026 15:43

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

paste: error message omits the file name

2 participants