mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
port error clarifications
This commit is contained in:
parent
f60e4a1355
commit
6b4800d2d6
4
src/www
4
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user