Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Report errors fetching issue details properly.

If the issue didn't exist, we get back a hashref with an 'error' key.
  • Loading branch information...
commit 686f62a59c6b97933f10011e452c3dcef45c6f13 1 parent 4aadd7a
@bigpresh authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Bot/BasicBot/Pluggable/Module/GitHub/EasyLinks.pm
View
4 lib/Bot/BasicBot/Pluggable/Module/GitHub/EasyLinks.pm
@@ -72,8 +72,8 @@ sub said {
if ($thing =~ /Issue|GH/i) {
warn "Handling issue $thingnum";
my $issue = $ng->issue->view($thingnum);
- if (!$issue) {
- push @return, "Issue $thingnum not found?";
+ if (!exists $issue->{error}) {
+ push @return, $issue->{error};
next match;
}
push @return, sprintf "Issue %d (%s) - %s",

0 comments on commit 686f62a

Please sign in to comment.
Something went wrong with that request. Please try again.