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 dc7615d commit bd2861eCopy full SHA for bd2861e
lib/error.js
@@ -407,7 +407,12 @@ function LibrdKafkaError(e) {
407
this.origin = 'kafka';
408
}
409
Error.captureStackTrace(this, this.constructor);
410
- } else if (e instanceof Error || Object.prototype.toString.call(e) === '[object Error]') {
+ } else if (
411
+ !(
412
+ e instanceof Error ||
413
+ Object.prototype.toString.call(e) === "[object Error]"
414
+ )
415
+ ) {
416
// This is the better way
417
this.message = e.message;
418
this.code = e.code;
0 commit comments