-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Improve code generation user-facing error on non-existent source file #955
Comments
@tefra If you think this is a good change then I will create a PR for it. |
The transformer is very lenient and doesn't fail if an included schema can't be retrieved, but yes I agree that behavior shouldn't be extended to the main resource file |
@tefra could you give me a quick heads up please on where this is best tested? I looked at the testing and exceptions seem to be captured and printed to the user? Assuming that is true, I went to test for process output (i.e. not testing with |
A proper warning will now be generated
|
When referencing a non-existent source file ("non-existing.xsd"):
only a
CodeGenerationError
is shown:when instead a FileNotFoundError would be more informative for the user.
The text was updated successfully, but these errors were encountered: