MCPcopy
hub / github.com/bower/bower / createError

Function createError

lib/util/createError.js:3–12  ·  view source on GitHub ↗
(msg, code, props)

Source from the content-addressed store, hash-verified

1var mout = require('mout');
2
3function createError(msg, code, props) {
4 var err = new Error(msg);
5 err.code = code;
6
7 if (props) {
8 mout.object.mixIn(err, props);
9 }
10
11 return err;
12}
13
14module.exports = createError;

Callers 15

fetchFunction · 0.70
rootCheckFunction · 0.70
executeCmdFunction · 0.70
extractFunction · 0.70
createLinkFunction · 0.70
initFunction · 0.50
registerFunction · 0.50
unregisterFunction · 0.50
bumpFunction · 0.50
checkGitStatusFunction · 0.50
version.jsFile · 0.50
homeFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…