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 dbc675f commit d8412bfCopy full SHA for d8412bf
src/index.js
@@ -6,7 +6,11 @@ const config = require('./config');
6
const metrics = require('./metrics');
7
8
const port = config.APP.port;
9
-app.listen(port, function() {
+app.listen(port, (err) => {
10
+ if (err) {
11
+ throw err;
12
+ }
13
+
14
// Update permissions of unix sockets
15
if (typeof port === 'string' && port.startsWith('/') && config.APP.unixSocketPermissions >= 0) {
16
fs.chmod(port, config.APP.unixSocketPermissions, function(err) {
@@ -16,6 +20,7 @@ app.listen(port, function() {
20
}
17
21
});
18
22
23
19
24
logger.info('Started on port: %s', port);
25
26
0 commit comments