do not throw and crash client

This commit is contained in:
Feross Aboukhadijeh 2016-03-15 20:59:04 -07:00
parent d3389f6784
commit 8c01cb7268

View File

@ -154,7 +154,7 @@ WebSocketTracker.prototype._onSocketData = function (data) {
} else if (data.action === 'scrape') { } else if (data.action === 'scrape') {
self._onScrapeResponse(data) self._onScrapeResponse(data)
} else { } else {
throw new Error('invalid action in WS response: ' + data.action) self._onSocketError(new Error('invalid action in WS response: ' + data.action))
} }
} }