Skip to content

Commit 5a2e805

Browse files
committed
fix comment and messages
1 parent e1d1feb commit 5a2e805

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/apps-engine/scripts/deno-cache.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ try {
4545
}
4646

4747
if (installedVersion !== denoToolVersion) {
48-
const message = `Incorrect Deno version. Required '${denoToolVersion}', found '${installedVersion}'.${!CI && " The server will likely work, but it may cause your deno.lock to change - do not to commit it. Make sure your Deno version matches the required one so you don't see this message again."}`;
48+
const message = `Incorrect Deno version. Required '${denoToolVersion}', found '${installedVersion}'.${CI ? '' : " The server will likely work, but it may cause your deno.lock to change - do not commit it. Make sure your Deno version matches the required one so you don't see this message again."}`;
4949

5050
if (CI) {
5151
throw new Error(message);
@@ -66,7 +66,7 @@ try {
6666
),
6767
);
6868
} else {
69-
console.error(e, e.message, e.message?.startsWith('Error: Incorrect deno version.'));
69+
console.error(e);
7070
}
7171

7272
process.exit(1);
@@ -76,7 +76,7 @@ const rootPath = path.join(__dirname, '..');
7676
const denoRuntimePath = path.join(rootPath, 'deno-runtime');
7777
const DENO_DIR = process.env.DENO_DIR ?? path.join(rootPath, '.deno-cache');
7878

79-
// In CI envs, break if lockfile changes; in dev envs, don't update the lockfile
79+
// In CI envs, break if lockfile changes; in dev envs, it's alright
8080
const commandLine = CI ? 'deno install --frozen --entrypoint main.ts' : 'deno install --entrypoint main.ts';
8181

8282
childProcess.execSync(commandLine, {

0 commit comments

Comments
 (0)