This project is archived and is in readonly mode.
better coloration on error messages
-
Roger
to test this patch apply, then add a syntax error to a view, and go to that view. It should have a red filename now [dark red].
-
Roger
This version of the patch [v2] now adds coloration for the line on which the error occurred.
-
Roger
v3 takes out an extra line I had added in there by mistake
-
Roger
v4 combine all commits into a single commit, add better colors. This is a nice patch for being able to instantly see which line your code erred on.
-
Adam S
+1
Errors can definitely be improved in Rails (see mod_rails errors for an example), these changes don't go a long way, but also don't hurt.
-
Pratik
- Assigned user set to Pratik
- State changed from new to incomplete
- Milestone cleared.
I tried it and it was very difficult to see the red color. I think you should discuss this change in rails core mailing list. There might be other similar places where we can improve error reporting.
-
Roger
I almost wonder if it wouldn't be even more helpful to include more with the error messages. Like an inspection of the controller's local variables. My thought is to [eventually] post some prototype error pages so we can decide on a reasonable color scheme. mod_rails style might work, too. They're nice.
Thanks.
-R
-
Roger
- Tag set to edge, patch
At least with MRI, it appears possible to snapshot local variables and parameters as to what they were passed in--might make for a nicer output.
-
Prem Sichanugrist (sikachu)
- State changed from incomplete to stale
