We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39bd9f9 commit d147944Copy full SHA for d147944
lib/error.js
@@ -405,7 +405,7 @@ function LibrdKafkaError(e) {
405
this.origin = 'kafka';
406
}
407
Error.captureStackTrace(this, this.constructor);
408
- } else if (!util.isError(e)) {
+ } else if (!(Object.prototype.toString(e) === "[object Error]" || e instanceof Error)) {
409
// This is the better way
410
this.message = e.message;
411
this.code = e.code;
0 commit comments