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

[FIX] Return error code of failed subprocess instead of success (which is the default) #254

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

luusl
Copy link
Contributor

@luusl luusl commented Aug 23, 2024

Although a subprocess fails during map creation, the return code of the wahoomc process is 0, i.e. good. This PR returns the code of the subprocess in case of an error so it's possible to determine if the map creation really succeeded.

@treee111 treee111 changed the title Return error code of failed subprocess instead of success [FIX] Return error code of failed subprocess instead of success (which is the default) Sep 12, 2024
@treee111 treee111 merged commit 85b8617 into treee111:develop Sep 12, 2024
2 checks passed
@treee111
Copy link
Owner

treee111 commented Sep 12, 2024

Hi @luusl, thanks for this PR! This indeed was not working OK since now because the default returned is 0 what means success (https://docs.python.org/2/library/sys.html#sys.exit). As you pointed out. 👍

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.

2 participants