mikser-io 9.93.0 → 9.95.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/instance.js +14 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mikser-io",
3
- "version": "9.93.0",
3
+ "version": "9.95.0",
4
4
  "files": [
5
5
  "app.js",
6
6
  "index.js",
package/src/instance.js CHANGED
@@ -360,12 +360,24 @@ function refuseClear(socket, request) {
360
360
  return true
361
361
  }
362
362
 
363
+ // Which process to restart.
364
+ //
365
+ // "Restart it" is only actionable if you know which `it` — and the machine
366
+ // that hits this is the machine running several instances from several
367
+ // projects, because that is what makes a stale config likely in the first
368
+ // place. Without the pid, finding it meant walking /proc by cwd.
369
+ //
370
+ // The instance answers with its OWN pid, which is the one fact a client cannot
371
+ // work out: it knows the folder it asked about, not who is holding it. The
372
+ // wrong-config refusal beside this one already names both sides; this one
373
+ // named neither.
363
374
  function refuseStale(socket, movedFile) {
364
375
  frame(socket, {
365
376
  type: 'refused',
366
377
  reason: `this instance's config changed on disk since it started (${movedFile}).`,
367
- detail: 'It is still running the old one. Restart it, and this command will reach an instance that '
368
- + 'matches what you edited.',
378
+ detail: `It is still running the old one pid ${process.pid}, started in `
379
+ + `${runtime.options.workingFolder}. Restart that process and this command will reach an `
380
+ + 'instance that matches what you edited.',
369
381
  })
370
382
  }
371
383