Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Fixed #664: capture and pass through exit code of mlcp, corb, etc #792

Merged
merged 1 commit into from
Jul 28, 2017

Conversation

grtjn
Copy link
Contributor

@grtjn grtjn commented Jun 7, 2017

Fixes #664.

The system call invokes sh, which in turn returns a 127 exit code if it cannot find java. The nil case is therefor never reached, but leaving it in place nonetheless. And at least it bails out in case Java is missing.

Side note: ./ml local mlcp version exits with code 1 too, not sure why..

@grtjn grtjn added this to the July 2017 milestone Jun 7, 2017
@RobertSzkutak
Copy link
Contributor

Pretty straightforward fix. Forced a success and fail scenario with MLCP and it seemed to log correctly. Didn't test CORB or XQSync but the code looks identical there as it does in MLCP handling.

@RobertSzkutak RobertSzkutak merged commit 7e74e2d into marklogic-community:dev Jul 28, 2017
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.

2 participants