MCPcopy Create free account
hub / github.com/dadi/api / onError

Function onError

dadi/lib/index.js:1024–1039  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

1022}
1023
1024function onError(err) {
1025 if (err.code === 'EADDRINUSE') {
1026 console.log(
1027 'Error ' +
1028 err.code +
1029 ': Address ' +
1030 config.get('server.host') +
1031 ':' +
1032 config.get('server.port') +
1033 ' is already in use, is something else listening on port ' +
1034 config.get('server.port') +
1035 '?\n\n'
1036 )
1037 process.exit(1)
1038 }
1039}

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected