Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Conversation

@karthikgvss
Copy link

Added proper error message with link to build instructions.

Added proper error message with link to build instructions.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to raise an exception here, or call sys.exit(1) (similar to help_exit()'s approach.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The official Python tutorial has a section on exceptions. One approach you may follow here is to log/print information about the requiredscripts/config_build.txt file, and then re-raise the exception with a bare raise (to avoid masking the original exception).

The following article explains why exceptions can lead to cleaner code:
Write Cleaner Python: Use Exceptions

@karthikgvss
Copy link
Author

I am checking if build config exists before creating RUNNABLE directory. This resolves #14 . I am also printing better message resolving #13. Please suggest.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants