Skip to content

Commit

Permalink
Merge pull request #441 from mjcheetham/exiterror
Browse files Browse the repository at this point in the history
Return non-zero exit code on exception
  • Loading branch information
mjcheetham authored Sep 7, 2021
2 parents 5ed706d + 94b85db commit 540a398
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shared/Microsoft.Git.CredentialManager/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ private void OnException(Exception ex, InvocationContext invocationContext)
{
WriteException(ex);
}

invocationContext.ResultCode = -1;
}

private bool WriteException(Exception ex)
Expand Down

0 comments on commit 540a398

Please sign in to comment.