Skip to content
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

Remove linebreaks from long error messages #1606

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alxndrsn
Copy link

@alxndrsn alxndrsn commented May 17, 2019

@alxndrsn alxndrsn changed the title Fixes sails/#4737 Fixes sails#4737 May 17, 2019
@alxndrsn alxndrsn changed the title Fixes sails#4737 Remove linebreaks from long error messages May 17, 2019
'after transforming columnNames back to attribute names for model `' + modelIdentity + '`, '+
'there is a record with a missing or invalid `'+WLModel.primaryKey+'`. '+
'Record: '+
'``` '+
Copy link
Member

Choose a reason for hiding this comment

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

@alxndrsn util.inspect is going to add new lines here anyway, so I think in spots like this it may just make more sense to leave the lines before and after the backticks. Any thoughts on this?

Copy link
Author

Choose a reason for hiding this comment

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

🤷‍♂️ in which case I should probably just override console.log, console.error etc. 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add option to stop waterline from posting multi-line log entries
2 participants