fix(test): update chroot error assertion to include command prefix
The expected error message now starts with "chroot: " to match the updated output format in the chroot utility. This ensures the test accurately reflects the command's behavior.
70c7ed4
1 month ago
by mattsu2020
-0.04%
refactor(clap_localization): replace print_prefixed_error with direct stderr output in ErrorFormatter
Replace the call to self.print_prefixed_error with direct eprintln for printing unexpected argument errors, and add an additional blank line for better formatting and readability in error messages. This change aims to simplify the output process and ensure consistent error presentation in the clap localization module.
8601226
1 month ago
by mattsu2020
0%
refactor(clap_localization): remove prefixed error printing and use direct eprintln for cleaner output
Modified error handling in clap_localization.rs to eliminate the utility name prefix by replacing self.print_prefixed_error calls with direct eprintln! invocations. This simplifies the codebase and changes error message formatting to display clap errors without the preceding util name. Removed the unused print_prefixed_error method.
326509d
1 month ago
by mattsu2020
+0.03%
test(tests/tsort): ignore test for single input file until error message is corrected
- Added #[ignore] attribute to test_only_one_input_file to skip it during execution.
- Reason: Test likely fails due to an incorrect error message; this prevents false negatives while the message is being fixed in the tsort utility.
399464a
1 month ago
by mattsu2020
-3.46%
Merge branch 'uutils:main' into tsort_compatibility
57ab06a
1 month ago
by mattsu2020
+3.46%
refactor: format TSORT_EXTRA_OPERAND_ERROR constant for readability
Split the TSORT_EXTRA_OPERAND_ERROR constant string into multiple lines
to improve code formatting and adhere to line length guidelines.
4275d60
23 days ago
by mattsu2020
+0.01%
chore: remove tests_tsort.patch from gnu-patches series
Removed the tests_tsort.patch entry as it is no longer applied, possibly due to upstream integration or obsolescence, to keep the patch series current and relevant.
6b420d8
23 days ago
by mattsu2020
0%
fix(tsort): simplify error message construction by removing .into() wrapper
Remove unnecessary `.into()` call when creating the extra operand error in uumain,
resulting in cleaner, more concise error handling code. This change does not alter
the program's functionality but improves code readability and reduces nesting.
e288476
22 days ago
by mattsu2020
+0.02%
feat: internationalize error messages in tsort command
Add localized strings for 'extra operand' and 'at least one input' errors in en-US and fr-FR locales. Update code to use translate! macro for consistent error reporting across languages, improving user experience for international users.
832c734
21 days ago
by mattsu2020
+2.01%
fix(tsort): ensure expect message is &str by calling .as_str()
The translate! macro returns a String, but expect() requires a &str. Added .as_str() to convert the translated string for correct type usage and fix compilation error.