diff options
Diffstat (limited to 'extensions/BMO')
-rw-r--r-- | extensions/BMO/Extension.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index ca4701748..5b87d2e8b 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -1176,8 +1176,12 @@ sub _attachment_fetch_github_pr_diff { $ua->proxy('https', Bugzilla->params->{proxy_url}); } - my $response = $ua->get($self->data . ".diff"); - return "Error retrieving Github pull request diff" if $response->is_error; + my $pr_diff = $self->data . ".diff"; + my $response = $ua->get($pr_diff); + if ($response->is_error) { + warn "Github fetch error: $pr_diff, " . $response->status_line; + return "Error retrieving Github pull request diff for " . $self->data; + } return $response->content; } |