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

Data loader error now tells you which file is in error #1104

Merged
merged 1 commit into from
Aug 27, 2016

Conversation

pllim
Copy link
Contributor

@pllim pllim commented Aug 24, 2016

Pass in offending filename into loader error message. Fixes #1096.

@astrofrog , is the fix too "hacky"? It does do what I want though.

@astrofrog
Copy link
Member

Thanks! This is probably fine - a better way would be to raise a custom exception in load_data that includes the filename, but at the end of the day this works, and practicality beats purity

@pllim
Copy link
Contributor Author

pllim commented Aug 25, 2016

For some reason, "TestImageWidget.test_resize" failed. Why would this extra message affect resizing? Hmm.

@astrofrog
Copy link
Member

That's a test that fails occasionally too - frustrating but can be ignored...

@pllim
Copy link
Contributor Author

pllim commented Aug 25, 2016

practicality beats purity

I agree but sometimes my OCD disagrees. If you change your mind and want the exception raised somewhere else as you stated, just let me know.

@astrofrog astrofrog merged commit 29a0f8c into glue-viz:master Aug 27, 2016
@astrofrog
Copy link
Member

Let's just go with this for now :) Thanks @pllim!

@pllim pllim deleted the fix-load-errmsg branch August 29, 2016 19:42
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.

Data Load Error does not mention which file is in error
2 participants