From 1370f89864b10518e9753078dc2d7f769685e9a0 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Mon, 8 Feb 2016 02:20:34 -0800 Subject: [PATCH] Fix bug in receiveEventsRoutine error handling --- client/ws_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ws_client.go b/client/ws_client.go index f7a23fca8..4c994bfcc 100644 --- a/client/ws_client.go +++ b/client/ws_client.go @@ -94,7 +94,7 @@ func (wsc *WSClient) receiveEventsRoutine() { continue } if response.Error != "" { - wsc.ErrorsCh <- fmt.Errorf(err.Error()) + wsc.ErrorsCh <- fmt.Errorf(response.Error) continue } wsc.ResultsCh <- *response.Result