Skip to content

fix: error message formatting by adding newline in printError #2096

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

Closed
wants to merge 2 commits into from

Conversation

nukhes
Copy link
Contributor

@nukhes nukhes commented May 17, 2025

Summary

  • Added a check to append a newline to the error message if it's missing before printing.

  • Trimmed the newline when creating the returned error value to keep error messages clean and consistent.

Fixes: #2095

Other Information

This prevents error messages from running into the shell prompt, improving readability.

@nukhes nukhes requested a review from a team as a code owner May 17, 2025 21:40
@nukhes nukhes changed the title Fix error message formatting by adding newline in printError fix: error message formatting by adding newline in printError May 17, 2025
Copy link
Member

@Stratus3D Stratus3D left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got some failing linters here. I will try to fix and merge this on Monday.

@Stratus3D
Copy link
Member

Code submitted here as been fixed in #2098

@Stratus3D Stratus3D closed this May 19, 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.

bug: error messages printed without newline cause shell prompt to appear on the same line
2 participants