Skip to content

Commit

Permalink
Merge pull request #4046 from bggbr/master
Browse files Browse the repository at this point in the history
Fix "EADDRINUSE" error
  • Loading branch information
knolleary committed Feb 21, 2023
2 parents 06e35ba + 892d21f commit 81ea67d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node_modules/node-red/red.js
Expand Up @@ -458,7 +458,7 @@ httpsPromise.then(function(startupHttps) {
RED.start().then(function() {
if (settings.httpAdminRoot !== false || settings.httpNodeRoot !== false || settings.httpStatic) {
server.on('error', function(err) {
if (err.errno === "EADDRINUSE") {
if (err.code === "EADDRINUSE") {
RED.log.error(RED.log._("server.unable-to-listen", {listenpath:getListenPath()}));
RED.log.error(RED.log._("server.port-in-use"));
} else {
Expand Down

0 comments on commit 81ea67d

Please sign in to comment.