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

Consolidate newlines in exception messages to avoid blank output #323

Merged
merged 1 commit into from
Dec 3, 2015

Conversation

latortuga
Copy link
Contributor

The exception message will now have leading newlines removed to avoid displaying a blank message as a header.

I took the way the error message is constructed from ActiveRecord's MigrationError error class and wrote a test case mimicking it.

Fixes #313

The exception message will now have leading newlines removed to avoid
displaying a blank message as a header.
@latortuga latortuga force-pushed the strip-leading-space branch from af0b001 to a65b56d Compare December 2, 2015 03:23
@rstacruz
Copy link
Collaborator

rstacruz commented Dec 3, 2015

👍

rstacruz added a commit that referenced this pull request Dec 3, 2015
Consolidate newlines in exception messages to avoid blank output
@rstacruz rstacruz merged commit a52bbdf into BetterErrors:master Dec 3, 2015
@RobinDaugherty RobinDaugherty added this to the v2.2 milestone Jul 29, 2017
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.

3 participants