Skip to content

Mention logging with ERROR level when using --exitonerror #5388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2025

Conversation

gohierf
Copy link
Contributor

@gohierf gohierf commented Mar 27, 2025

Seems like this is not mentioned anywhere else. I scratched my head on it for a while.

It appears that the term "ERROR" is used for different purpose in TRY/EXCEPT (i.e. exception or failure) or logging (i.e. level).
Maybe it would be valuable to also mention it in the TRY/EXCEPT section :

.. note:: TRY/EXCEPT do not catch "ERROR" level logs, therefore they will not prevent exiting when :option:`--exitonerror` is used.

@pekkaklarck
Copy link
Member

pekkaklarck commented May 7, 2025

I agree it's a good idea to mention that using the ERROR log level stops execution if --exit-on-error is used. I submitted issue #5424 about this. The reason TRY/EXCEPT doesn't catch these errors is that it doesn't in general catch any error that stops the whole execution. Finally, it's true that the term "error" is used in many different places meaning slightly different things.

The added documentation looks good in general, but there are few things to be adjusted. I'll just merge this PR and do cleanup afterwards. Thanks for you contribution!

@pekkaklarck pekkaklarck merged commit 514240e into robotframework:master May 7, 2025
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