Skip to content

Commit

Permalink
Merge pull request #351 from jglick/diag
Browse files Browse the repository at this point in the history
Diagnostics for GHFileNotFoundException from retrieve
  • Loading branch information
bitwiseman authored Dec 2, 2020
2 parents 72db833 + 1fae9fd commit d202761
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import hudson.AbortException;
import hudson.Extension;
import hudson.Functions;
import hudson.RestrictedSince;
import hudson.Util;
import hudson.console.HyperlinkNote;
Expand Down Expand Up @@ -1037,7 +1038,7 @@ public SCMSourceCriteria.Probe create(@NonNull BranchSCMHead head,
retrievePullRequest(github, ghRepository, pr, strategies, request, listener);
} catch (FileNotFoundException e) {
listener.getLogger().format("%n Error while processing pull request %d%n", number);
listener.getLogger().format("%n Reason: %s%n", e);
Functions.printStackTrace(e, listener.getLogger());
errorCount++;
}
count++;
Expand Down

0 comments on commit d202761

Please sign in to comment.