Skip to content

Remove linebreaks from long error messages#1606

Open
alxndrsn wants to merge 1 commit intobalderdashy:masterfrom
alxndrsn:long-error-messages
Open

Remove linebreaks from long error messages#1606
alxndrsn wants to merge 1 commit intobalderdashy:masterfrom
alxndrsn:long-error-messages

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