Skip to content

Commit

Permalink
Return false for github submit exceptions (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryfu-msft authored Apr 12, 2022
1 parent 764c562 commit 81263e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/WingetCreateCLI/Commands/BaseCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -501,16 +501,16 @@ protected async Task<bool> GitHubSubmitManifests(Manifests manifests)
if (e is Octokit.ForbiddenException)
{
Logger.ErrorLocalized(nameof(Resources.Error_Prefix), e.Message);
return true;
return false;
}
else if (e is NonFastForwardException nonFastForwardException)
{
Logger.ErrorLocalized(nameof(Resources.FastForwardUpdateFailed_Message), nonFastForwardException.CommitsAheadBy);
return true;
return false;
}
else
{
return false;
throw;
}
}

Expand Down

0 comments on commit 81263e5

Please sign in to comment.