Skip to content

date: wrap errors with thiserror - #14333

Open
Devel08 wants to merge 1 commit into
uutils:mainfrom
Devel08:date-wrap-errors-in-thiserror
Open

date: wrap errors with thiserror#14333
Devel08 wants to merge 1 commit into
uutils:mainfrom
Devel08:date-wrap-errors-in-thiserror

Conversation

@Devel08

@Devel08 Devel08 commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

No description provided.

date: wrap errors with thiserror
@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/cut/bounded-memory (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/tail-n0f (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/expand/bounded-memory is now being skipped but was previously passing.
Note: The gnu test tests/printf/printf-surprise is now being skipped but was previously passing.
Congrats! The gnu test tests/rm/many-dir-entries-vs-OOM is now passing!

Comment thread src/uu/date/src/date.rs
_ => 1,
}
}
}

@xtqqczze xtqqczze Aug 31, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
impl UError for DateError {}

@sylvestre As per your comment in #4482 (comment), should the error code for this variant be 1?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alr, I also agree, because GNU exits with 1 too

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.

2 participants