Browse Source

fix error wording

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/197/head
Michael Telatynski 7 years ago
parent
commit
fd9e3a0957
No known key found for this signature in database GPG Key ID: 3F879DA5AD802A5E
  1. 6
      src/github.com/matrix-org/go-neb/services/github/github.go

6
src/github.com/matrix-org/go-neb/services/github/github.go

@ -207,11 +207,11 @@ func (s *Service) cmdGithubComment(roomID, userID string, args []string) (interf
})
if err != nil {
log.WithField("err", err).Print("Failed to create issue")
log.WithField("err", err).Print("Failed to create issue comment")
if res == nil {
return nil, fmt.Errorf("Failed to create issue. Failed to connect to Github")
return nil, fmt.Errorf("Failed to create issue comment. Failed to connect to Github")
}
return nil, fmt.Errorf("Failed to create issue. HTTP %d", res.StatusCode)
return nil, fmt.Errorf("Failed to create issue comment. HTTP %d", res.StatusCode)
}
return gomatrix.TextMessage{"m.notice", fmt.Sprintf("Commented on issue: %s", *issueComment.HTMLURL)}, nil

Loading…
Cancel
Save