[Initial registration] Incorrect exit code in case if initial registration is failed

Description

In case if initial registration failed, corda returns exit code = 0 (Zero means success)
According to documentation cli-ux-guidelines.html>>Application behavior:

  • Set exit codes using exitProcess.

  • Zero means success.

  • Other numbers mean errors.
    Setting a unique error code (starting from 1) for each thing that can conceivably break makes your tool shell-scripting friendly.

 

Steps to reproduce:
1) Execute initial registration for the node with the following networkServices configuration:

Expected result:
Initial registration failed with exit code = 1 and error in the node log:

  • Issue with Node registration: Unrecognized SSL message, plaintext connection?

Actual result:
Initial registration failed with exit code = 0 and error in the node log:

  • Issue with Node registration: Unrecognized SSL message, plaintext connection?

Node conf file and logs are attached

Assignee

Roman Vasiliev

Reporter

Roman Vasiliev

Labels

Sprint

None

Epic Link

None

Priority

Medium

Engineering Teams

Kernel

Fix versions

Affects versions

Ported to...

Corda 4.4
Corda Enterprise 4.4

Story Points / Dev Days

None

Build cut

None

Feature Team

Kernel Group
Configure