MCPcopy Create free account
hub / github.com/mscdex/ssh2 / makeError

Function makeError

lib/protocol/utils.js:141–151  ·  view source on GitHub ↗
(msg, level, fatal)

Source from the content-addressed store, hash-verified

139}
140
141function makeError(msg, level, fatal) {
142 const err = new Error(msg);
143 if (typeof level === 'boolean') {
144 fatal = level;
145 err.level = 'protocol';
146 } else {
147 err.level = level || 'protocol';
148 }
149 err.fatal = !!fatal;
150 return err;
151}
152
153function writeUInt32BE(buf, value, offset) {
154 buf[offset++] = (value >>> 24);

Callers 2

connectMethod · 0.85
utils.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…