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

Return frailer exit code if there is exception #623

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mostafabarmshory
Copy link

If you want to check the server exit non-normal in OS level, you must check the return code from the process. If the exit code is 0 then the process is finished normally. In other cases, there was an error. In node the following code is a normal exit from the process:

process.exit();

In the server code, we exit normally on exception. So it is not possible to find out the process exit du to error.

I add error code to the process to find out there is an exception.

If you want to check the server exit non-normal in OS level, you must check the return code from the process. If the exit code is 0 then the process is finished normally. In other cases, there was an error. In node the following code is a normal exit from the process:

    process.exit();

In the server code, we exit normally on exception. So it is not possible to find out the process exit du to error. 

I add error code to the process to find out there is an exception.
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.

None yet

1 participant