diff options
Diffstat (limited to 'vendor/github.com/sromku/go-gitter/stream.go')
-rw-r--r-- | vendor/github.com/sromku/go-gitter/stream.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/github.com/sromku/go-gitter/stream.go b/vendor/github.com/sromku/go-gitter/stream.go index 67a907cf..1c26ebeb 100644 --- a/vendor/github.com/sromku/go-gitter/stream.go +++ b/vendor/github.com/sromku/go-gitter/stream.go @@ -137,7 +137,10 @@ func (stream *Stream) connect() { res, err := stream.gitter.getResponse(stream.url, stream) if err != nil || res.StatusCode != 200 { - stream.gitter.log(fmt.Sprintf("Failed to get response, trying reconnect (Status code: %v)", res.StatusCode)) + stream.gitter.log("Failed to get response, trying reconnect") + if res != nil { + stream.gitter.log(fmt.Sprintf("Status code: %v", res.StatusCode)) + } stream.gitter.log(err) // sleep and wait |