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

xjs: display filename when unable to read a schema file #21

Open
RayPlante opened this issue Nov 10, 2016 · 0 comments
Open

xjs: display filename when unable to read a schema file #21

RayPlante opened this issue Nov 10, 2016 · 0 comments

Comments

@RayPlante
Copy link
Collaborator

When using the xjs validater from the command line and a schema file cannot be read (e.g. file not found), the command exits with an "Unexpected error:" with only the IOError message; no file name is given. This is not enough information for the user to figure out how to fix the problem.

More information should be provided, with the filename being the minimum. It would be better to handle this error explicitly indicating, providing as much information as possible.

This particular IOError occurs in xjs.schemaloader.load_schema().

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

1 participant