Viewing error output from precompilers #302

Open
pmdarrow opened this Issue Aug 15, 2012 · 2 comments

Comments

Projects
None yet
4 participants

Debugging precompiler errors with compressor enabled is hard. Error output is mangled by the Django 500 page. I'd like to see this:
pretty errors

... instead of this:
ugly errors

Redirecting stderr from the precompilers into the Django development server console would be great. Is this something that's already possible and I'm just missing it in the docs?

honza commented Aug 15, 2012

+1

I've had to fight with this a few times in writing a custom less precompiler command, definitely made it painful to debug. It looks like it's using ANSI color escape characters so the patch should be to assign the exception message value string to something like: "[31mNameError...".decode("string_escape")

@diox diox added the feature label Sep 26, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment