Skip to content

Return frailer exit code if there is exception#623

Open
mostafabarmshory wants to merge 1 commit intoprerender:masterfrom
mostafabarmshory:patch-1
Open

Return frailer exit code if there is exception#623
mostafabarmshory wants to merge 1 commit intoprerender:masterfrom
mostafabarmshory:patch-1

Conversation

@mostafabarmshory
Copy link
Copy Markdown

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.

1 participant