From 6b4800d2d689a8274a826b84897d0e2ec919d2ed Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 8 Mar 2023 07:31:10 +0100 Subject: [PATCH] port error clarifications --- src/www | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/www b/src/www index bc41ca063..778197e37 100644 --- a/src/www +++ b/src/www @@ -109,12 +109,12 @@ async function startTrilium() { // handle specific listen errors with friendly messages switch (error.code) { case 'EACCES': - console.error(`Port ${port} requires elevated privileges`); + console.error(`Port ${port} requires elevated privileges. It's recommended to use port above 1024.`); process.exit(1); break; case 'EADDRINUSE': - console.error(`Port ${port} is already in use`); + console.error(`Port ${port} is already in use. Most likely, another Trilium process is already running. You might try to find it, kill it, and try again.`); process.exit(1); break;