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

Better error reporting. #67

Closed
waqasraz opened this issue Jul 27, 2016 · 3 comments
Closed

Better error reporting. #67

waqasraz opened this issue Jul 27, 2016 · 3 comments

Comments

@waqasraz
Copy link

waqasraz commented Jul 27, 2016

I think it could be a good idea to report an error when someone user {% render_bundle 'XYZ' %} but the bundle is not declared. Currently, Django displays

http://prnt.sc/byb0u7
http://prnt.sc/byb15c

@ryanhiebert
Copy link

Obviously, the KeyError is an error. How would you prefer to see this reported? Just another error type with a more descriptive message, or do you have something else in mind?

@waqasraz
Copy link
Author

Something like bundle_name does not exist.

Because my settings file name was "common" and yesterday I was getting error keyerror at / "common". Just saying could be easier for a newbie to webpack-loader.

@owais
Copy link
Collaborator

owais commented Jul 30, 2016

@waqasraz Sounds reasonable. I'd be happy to take a patch :)

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

No branches or pull requests

3 participants