Skip to content

tsort: include filename in error message - #14253

Open
abhijeetvichare76 wants to merge 1 commit into
uutils:mainfrom
abhijeetvichare76:tsort-error-filename
Open

tsort: include filename in error message#14253
abhijeetvichare76 wants to merge 1 commit into
uutils:mainfrom
abhijeetvichare76:tsort-error-filename

Conversation

@abhijeetvichare76

Copy link
Copy Markdown

GNU tsort names the file it could not open, ours did not:

GNU:  tsort: nosuchfile.txt: No such file or directory
uu:   tsort: No such file or directory

The File::open error was propagated without context. Fixed with map_err_context, as nl and wc already do. Added a regression test.

GNU tsort names the file it could not open; ours dropped it because the
File::open error was propagated without context. Use map_err_context,
as nl and wc already do.
@abhijeetvichare76
abhijeetvichare76 marked this pull request as ready for review August 29, 2026 23:28
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.

1 participant