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

Flags loader error doesn't include the whole error #121

Open
Confidenceman02 opened this issue Dec 15, 2024 · 0 comments
Open

Flags loader error doesn't include the whole error #121

Confidenceman02 opened this issue Dec 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Confidenceman02
Copy link
Owner

Some exceptions from loading the flags module may have more than 1 error message. for example sometimes the flags file that it's trying to load doesn't exist and it returns an exception with multiple args. Djelm just grabs the first one which can mean we get a number back, which is not helpful at all.

e.g.

 -- FLAG MODULE ERROR ----------------------------------------------------------------------------------------------------- command/generatemodel

    I was trying to generate a model from this flags module:

        /home/<REDACTED>/code/django-elm/example/elm_programs/flags/modelChoiceField.py

    But got the following error type:

        2

    Make sure you fix the errors in /home/<REDACTED>/code/django-elm/example/elm_programs/flags/modelChoiceField.py.
@Confidenceman02 Confidenceman02 added the bug Something isn't working label Dec 15, 2024
@Confidenceman02 Confidenceman02 changed the title Flags loader error doesn't iclude the whole error Flags loader error doesn't include the whole error Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant