mirror of
https://github.com/kovetskiy/mark.git
synced 2026-03-17 07:57:37 +08:00
When --continue-on-error was set and one or more files failed to process, Run() logged each failure but returned nil, making it impossible for callers or CI systems to detect partial failures. Track whether any file failed with a hasErrors flag and return a descriptive error after all files have been attempted. Update TestContinueOnError to reflect the corrected behaviour: the test now asserts that an error IS returned (partial failure is surfaced) while still verifying that all files in the batch are attempted (not just the first one). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>