marklogic / marklogic/marklogic-contentpump

Powershell doesn't receive the error code

Open
#176 0 comments 0 reactions 1 assignee View on GitHub

@abika5 is already working on this.

Since Sep 27, 2021.

bug minor mlcp new
Dominant language
Java
Stars
37
Forks
32
Avg merge
1h 3m
Merged PRs (30d)
12

Description

Important note: This works correct in a windows command prompt, but not in PowerShell.

Steps to reproduce: Run the following two commands in PowerShell:

mlcp
$LASTEXITCODE

The first command prints the usage, the last one the error code (or exit code)

Expected output: 1
Actual output: 0

OS: Windows 10
MLCP: 10.0.4.2

Suggested fix.
Add a the following command to the end of the bat file:

exit /B %errorlevel%

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.