From e49266ae4360c2d75fd004cdec38528cc3127ffe Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 19 Jun 2017 20:27:14 +0200 Subject: Update gitter vendor. (fixes crash) --- vendor/github.com/sromku/go-gitter/stream.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vendor/github.com/sromku') 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 -- cgit v1.2.3