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

Powershell doesn't receive the error code #176

Open
wolojo opened this issue Jan 5, 2021 · 0 comments
Open

Powershell doesn't receive the error code #176

wolojo opened this issue Jan 5, 2021 · 0 comments
Assignees
Milestone

Comments

@wolojo
Copy link

wolojo commented Jan 5, 2021

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%
@yunzvanessa yunzvanessa self-assigned this Jun 1, 2021
@yunzvanessa yunzvanessa added this to the 10.0.8 milestone Jun 1, 2021
@yunzvanessa yunzvanessa assigned abika5 and unassigned yunzvanessa Sep 27, 2021
@yunzvanessa yunzvanessa modified the milestones: 10.0.8, 10.0.9 Sep 27, 2021
@abika5 abika5 modified the milestones: 10.0.9, 10.0-10 Jan 28, 2022
@yunzvanessa yunzvanessa modified the milestones: 11.0.0, 11.1.0 May 15, 2023
@abika5 abika5 modified the milestones: 11.1.0, 11.2.0 Jan 3, 2024
@abika5 abika5 modified the milestones: 11.3.0, 11.4.0 Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants