Minecraft does not remove trailing line breaks from error messages
The bug
Some exceptions contain OS error messages. It looks like these error messages end at least for Windows with a line break. When the error message is then printed in the log an empty line is created.
How to reproduce
- Take a screenshot
- Delete the screenshot while leaving the game open
- Click on the screenshot link in chat
→ An error message containing the Windows error "The system cannot find the file specified." is printed in the log with a blank line after it
Note: This cannot be seen in the log window of the new launcher. You can however still see this in the created log file.
2017-02-05, 07:51 PM
2020-02-16, 12:08 AM
2020-02-16, 12:08 AM
1
3
OS, error-message, line-break, log, logging
Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.1, Minecraft 1.12.2
-