Skip to content

Exit codes not reliable #1245

@IlleNilsson

Description

@IlleNilsson

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Summary

I'm using PowerShell to create a resource but the exit codes are not as expected. I get an exit code of 2, even if coded to 0 upon exit of pwsh.exe.

Here is the repo and the launch.json has the test cases... ; https://github.com/IlleNilsson/Microsoft.DSC.v3.resource.venture

Steps to reproduce

Run the test in the launch.json file

Expected behavior

0

Actual behavior

2

Error details

Environment data

7.5.4

Version

3.1.1

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions