@swmansion/argent 0.28.1-next.25 → 0.28.1-next.26
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/dist/tool-server.cjs +17 -13
- package/package.json +1 -1
package/dist/tool-server.cjs
CHANGED
|
@@ -121538,9 +121538,10 @@ async function bootElectronApp(options) {
|
|
|
121538
121538
|
}
|
|
121539
121539
|
const onSpawnError = (err, reject) => {
|
|
121540
121540
|
const codeSuffix = err.code ? ` (${err.code})` : "";
|
|
121541
|
+
const installHint = launcher.command === "electron" && err.code === "ENOENT" ? ` Make sure 'electron' is installed (npm i electron in the app dir, or globally) and on PATH.` : "";
|
|
121541
121542
|
reject(
|
|
121542
121543
|
new FailureError(
|
|
121543
|
-
`Electron boot: failed to launch ${launcher.command}${codeSuffix}: ${err.message}
|
|
121544
|
+
`Electron boot: failed to launch ${launcher.command}${codeSuffix}: ${err.message}.${installHint}`,
|
|
121544
121545
|
{
|
|
121545
121546
|
error_code: FAILURE_CODES.CHROMIUM_ELECTRON_SPAWN_FAILED,
|
|
121546
121547
|
failure_stage: "electron_spawn_error",
|
|
@@ -121561,18 +121562,21 @@ async function bootElectronApp(options) {
|
|
|
121561
121562
|
};
|
|
121562
121563
|
child.once("error", spawnErrorListener);
|
|
121563
121564
|
if (!child.pid) {
|
|
121564
|
-
|
|
121565
|
-
|
|
121566
|
-
|
|
121567
|
-
|
|
121568
|
-
|
|
121569
|
-
|
|
121570
|
-
|
|
121571
|
-
|
|
121572
|
-
|
|
121573
|
-
|
|
121574
|
-
|
|
121575
|
-
|
|
121565
|
+
return Promise.race([
|
|
121566
|
+
spawnError,
|
|
121567
|
+
sleepUnref(1e3).then(() => {
|
|
121568
|
+
throw new FailureError(
|
|
121569
|
+
`Electron boot: spawn returned without a pid (binary: ${launcher.command}).`,
|
|
121570
|
+
{
|
|
121571
|
+
error_code: FAILURE_CODES.CHROMIUM_ELECTRON_SPAWN_FAILED,
|
|
121572
|
+
failure_stage: "electron_spawn_no_pid",
|
|
121573
|
+
failure_area: "tool_server",
|
|
121574
|
+
error_kind: "subprocess",
|
|
121575
|
+
failure_command: "electron"
|
|
121576
|
+
}
|
|
121577
|
+
);
|
|
121578
|
+
})
|
|
121579
|
+
]);
|
|
121576
121580
|
}
|
|
121577
121581
|
child.stderr?.on("data", (chunk) => {
|
|
121578
121582
|
process.stderr.write(`[chromium-cdp-${port}] ${chunk}`);
|
package/package.json
CHANGED