Skip to content

Commit 247a06f

Browse files
committed
use console.error on EADDRINUSE
1 parent 5c1fe3a commit 247a06f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ParseServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ class ParseServer {
263263
if (!process.env.TESTING) {
264264
process.on('uncaughtException', (err) => {
265265
if ( err.code === "EADDRINUSE" ) { // user-friendly message for this common error
266-
log.error(`Unable to listen on port ${err.port}. The port is already in use.`);
266+
console.error(`Unable to listen on port ${err.port}. The port is already in use.`);
267267
process.exit(0);
268268
} else {
269269
throw err;

0 commit comments

Comments
 (0)