Skip to content

Module does not provide an exit code when compiler compile fails #6

@leojonathanoh

Description

@leojonathanoh

Bug

cmdlet does not exit with non-zero exit code when compiler compile fails.

Expectation

cmdlet does exit with non-zero exit code when compiler compile fails.

Two ways to get a non-zero exit code in powershell:

  1. throw a terminating error in the script (we lose the exit code of the compiler)
  2. exit 1 in the script (we exit the entire powershell process)
  3. Populate the $global:LASTEXITCODE for consumer to read.

Edit: I think its better to pass exit code via option 3 instead of the first two options.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions