jobtrack 1.0.12 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/server.ts
CHANGED
|
@@ -70,7 +70,7 @@ export async function startServer(): Promise<RunningServer> {
|
|
|
70
70
|
return reply.status(404).send({ error: 'not_found', message: 'Not found' });
|
|
71
71
|
});
|
|
72
72
|
} else {
|
|
73
|
-
console.warn('[tray] no built web UI found
|
|
73
|
+
console.warn('[tray] no built web UI found. Run "npm run build" to serve it. API-only for now.');
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
await search.start();
|
|
@@ -86,7 +86,7 @@ export async function startServer(): Promise<RunningServer> {
|
|
|
86
86
|
`JOBTRACK_ERROR ${JSON.stringify({ code: 'EADDRINUSE', host: config.host, port: config.port })}`,
|
|
87
87
|
);
|
|
88
88
|
console.error(
|
|
89
|
-
`Port ${config.port} is already in use
|
|
89
|
+
`Port ${config.port} is already in use. JobTrack may already be running. Stop it, or set PORT in .env to something else.`,
|
|
90
90
|
);
|
|
91
91
|
search.stop();
|
|
92
92
|
await app.close();
|
package/src/tray.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface TrayHandlers {
|
|
|
36
36
|
export function createTray(handlers: TrayHandlers): InstanceType<SysTrayCtor> {
|
|
37
37
|
const webDist = resolveWebDist();
|
|
38
38
|
if (!webDist) {
|
|
39
|
-
throw new Error('No built web UI found
|
|
39
|
+
throw new Error('No built web UI found. Run "npm run build" before starting the tray.');
|
|
40
40
|
}
|
|
41
41
|
const icon = readFileSync(resolve(webDist, 'favicon.ico')).toString('base64');
|
|
42
42
|
|