Skip to content

Commit 9045847

Browse files
committed
lib: fix constructor in _errnoException stack tree
Fixes the constructor name in the stack tree for _errnoException.
1 parent b13f24c commit 9045847

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ function _errnoException(...args) {
339339
Error.stackTraceLimit = 0;
340340
const e = new ErrnoException(...args);
341341
Error.stackTraceLimit = limit;
342-
ErrorCaptureStackTrace(e, _exceptionWithHostPort);
342+
ErrorCaptureStackTrace(e, _errnoException);
343343
return e;
344344
}
345345
return new ErrnoException(...args);

0 commit comments

Comments
 (0)