Skip to content

Commit 2767283

Browse files
committed
Improve error logs
1 parent 89067e3 commit 2767283

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/apphosting/localbuilds.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ describe("localBuild", () => {
453453
expect(logWarningStub).to.have.been.calledOnceWith(
454454
"apphosting",
455455
sinon.match(
456-
"Local Node.js version (v24.10.0) does not match your backend's target ABIU runtime",
456+
"Local Node.js version (v24.10.0) does not match your backend's target Node.js version",
457457
),
458458
);
459459
});

src/apphosting/localbuilds.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,8 @@ export function validateLocalBuildNodeVersion(backend: Backend, projectRoot: str
349349
if (localMajor !== null && localMajor !== targetMajor) {
350350
logLabeledWarning(
351351
"apphosting",
352-
`Local Node.js version (${localNodeVersion}) does not match your backend's target ABIU runtime major version (Node.js ${targetMajor}). ` +
353-
`Because local builds compile code using your host's Node.js version, this mismatch can cause native modules ` +
354-
`to be compiled for the wrong version, leading to silent startup crashes in production (running on Node.js ${targetMajor}). ` +
352+
`Local Node.js version (${localNodeVersion}) does not match your backend's target Node.js version (Node.js ${targetMajor}). ` +
353+
`This mismatch may cause runtime issues. ` +
355354
`Please switch your local environment to Node.js ${targetMajor} to ensure build-to-run parity.`,
356355
);
357356
}

0 commit comments

Comments
 (0)