Skip to content

Commit 8c01cb7

Browse files
committed
do not throw and crash client
1 parent d3389f6 commit 8c01cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client/websocket-tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ WebSocketTracker.prototype._onSocketData = function (data) {
154154
} else if (data.action === 'scrape') {
155155
self._onScrapeResponse(data)
156156
} else {
157-
throw new Error('invalid action in WS response: ' + data.action)
157+
self._onSocketError(new Error('invalid action in WS response: ' + data.action))
158158
}
159159
}
160160

0 commit comments

Comments
 (0)