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 b92be2a commit 95dcb64Copy full SHA for 95dcb64
lib/error.js
@@ -407,7 +407,7 @@ function LibrdKafkaError(e) {
407
this.origin = 'kafka';
408
}
409
Error.captureStackTrace(this, this.constructor);
410
- } else if (!util.isError(e)) {
+ } else if (!(e instanceof Error || Object.prototype.toString.call(e) === '[object Error]')) {
411
// This is the better way
412
this.message = e.message;
413
this.code = e.code;
0 commit comments