You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the readme, the client's 'error' event is emitted when a query has no callback / delegate for an error.
This works fine for queries that have been created with a callback. However if a delegate is attached through client.on('error', cb), the client's error event is emitted anyway.
Try:
query = client.query('this must be wrong');
query.on('error', function(err) {
console.log('Failing gracefully: ' + error);
});
The text was updated successfully, but these errors were encountered:
According to the readme, the client's 'error' event is emitted when a query has no callback / delegate for an error.
This works fine for queries that have been created with a callback. However if a delegate is attached through client.on('error', cb), the client's error event is emitted anyway.
Try:
The text was updated successfully, but these errors were encountered: