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

Build Error includes first line of backtrace #256

Merged
merged 1 commit into from
Nov 12, 2015

Conversation

seanpdoyle
Copy link
Contributor

rails/web-console is meant to display Ruby errors.

When presented with JS stack traces, or free text CLI error messages, it
confusingly displays a large (almost to the fold) white console box.

To make it more obvious what the client-side error was, we include the
first line of the backtrace in the BuildError's message.

error.set_backtrace build_error_file_path.readlines
backtrace = build_error_file_path.readlines.reject(&:blank?)

error = BuildError.new("#{name.inspect} has failed to build: #{backtrace.first}")

Choose a reason for hiding this comment

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

Line is too long. [87/80]

[rails/web-console] is meant to display Ruby errors.

When presented with JS stack traces, or free text CLI error messages, it
confusingly displays a large (almost to the fold) white console box.

To make it more obvious what the client-side error was, we include the
first line of the backtrace in the `BuildError`'s message.

[rails/web-console]: https://github.com/rails/web-console
@seanpdoyle seanpdoyle merged commit ddb11f0 into master Nov 12, 2015
@seanpdoyle seanpdoyle deleted the sd-format-error-backtrace branch November 12, 2015 00:24
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.

2 participants