Skip to content

Make corerun exit code more useful#35684

Merged
cshung merged 1 commit intodotnet:masterfrom
cshung:dev/andrewau/corerun-exit-code
May 4, 2020
Merged

Make corerun exit code more useful#35684
cshung merged 1 commit intodotnet:masterfrom
cshung:dev/andrewau/corerun-exit-code

Conversation

@cshung
Copy link
Contributor

@cshung cshung commented May 1, 2020

In case corerun failed to initialize the CoreCLR, we should use the failure HR as the process exit code.

@cshung cshung requested a review from jkotas May 1, 2020 00:16
@ghost
Copy link

ghost commented May 1, 2020

Tagging subscribers to this area: @vitek-karas, @swaroop-sridhar
Notify danmosemsft if you want to be subscribed.

@jkotas
Copy link
Member

jkotas commented May 1, 2020

You may want to do the same thing here:

(corerun for Windows and Unix have separate implementations for historic reasons.)

@danmoseley
Copy link
Member

danmoseley commented May 1, 2020

What about writing to console if any? Since presumably exit code here means there's a bug or misconfiguration -- it's not to help write scripts with it -- its a tool intended only for our use, as far as I know.

@cshung cshung merged commit 88cf2b4 into dotnet:master May 4, 2020
@cshung cshung deleted the dev/andrewau/corerun-exit-code branch May 4, 2020 21:26
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants