From fd9e3a0957c4dcc1c05ffd2d38b144031c1c973a Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 22 Aug 2017 14:54:53 +0100 Subject: [PATCH] fix error wording Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/github.com/matrix-org/go-neb/services/github/github.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/github.com/matrix-org/go-neb/services/github/github.go b/src/github.com/matrix-org/go-neb/services/github/github.go index 866f5d5..9afa180 100644 --- a/src/github.com/matrix-org/go-neb/services/github/github.go +++ b/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