Skip to content

Mention log file when long error messages are cut - #5787

Open
Ronin-76 wants to merge 1 commit into
robotframework:masterfrom
Ronin-76:mention-log-file-for-cut-message
Open

Ronin-76 wants to merge 1 commit into
robotframework:masterfrom
Ronin-76:mention-log-file-for-cut-message

Conversation

@Ronin-76

Copy link
Copy Markdown

Fixes #5165

When a long error message is cut, the console, log and report only show [ Message content over the limit has been removed. ], which does not tell users that the full output is still available in the log file.

This PR updates the explanation to:

[ Message over the limit removed, see the log file for full output. ]

The wording avoids hardcoding the log file name since it can be configured, and applies to both log and report contexts. The message also stays within the _MAX_ERROR_LINE_LENGTH limit so console output does not wrap.

Changes:

  • src/robot/utils/text.py: updated _ERROR_CUT_EXPLN
  • Updated matching acceptance test assertions

This branch has not been deployed

No deployments
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.

Mention log.html if long message is cut

1 participant