-
-
Notifications
You must be signed in to change notification settings - Fork 382
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
Better error notification on missing linguist dependency? #36
Comments
Sucks that the error message was cryptic from your log 😦 Even though it's a gem full of html utilities, this gem doesn't make any assumption about where you're using it. The best we can do is print the error message to stderr. |
What about replacing This is what text_filter.rb does, and because of it, I could see its error on the browser/app. |
That sounds good to me. Brain fart on my part for not thinking of that. Do you want to send a PR my way for that? I'll bump the gem version after merging that. |
Sure, gimme a minute. On Wed, Feb 6, 2013 at 5:13 PM, Jerry Cheung [email protected]:
|
Thanks for the speedy pull! I've released 0.0.8 with your changes http://rubygems.org/gems/html-pipeline/versions/0.0.8 |
Chalk this up to RTFM, but with a simple filter like this
I kept getting the
help
rails app to crash:Finally, after looking at the logs, I found:
You need to install linguist before using the SyntaxHighlightFilter. See README.md for details
.Not sure if this error can be raised in the browser itself, but it'd be nice. Also not sure if this'll be fixed by #28 anyway.
The text was updated successfully, but these errors were encountered: