Browse Source

improve error from no default repo

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

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

@ -305,7 +305,7 @@ func (s *Service) getIssueDetailsFor(input, roomID, usage string) (owner, repo s
// issue only match, this only works if there is a default repo
defaultRepo := s.defaultRepo(roomID)
if defaultRepo == "" {
resp = &gomatrix.TextMessage{"m.notice", "Usage: " + usage}
resp = &gomatrix.TextMessage{"m.notice", "No default repo specified. Usage: " + usage}
return
}

Loading…
Cancel
Save