Skip to content

Commit 9cad34d

Browse files
committed
improve warnings and errors
1 parent 5263028 commit 9cad34d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/cli-v3/src/commands/update.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export async function updateTriggerPackages(
7070
if (newCliVersion) {
7171
prettyWarning(
7272
"You're not running the latest CLI version, please consider updating ASAP",
73-
"To update, run: `(p)npm i trigger.dev@beta`\nOr run with: `(p)npx trigger.dev@beta`",
74-
"Yarn works too!"
73+
`Current: ${cliVersion}\nLatest: ${newCliVersion}`,
74+
"Run latest: npx trigger.dev@beta"
7575
);
7676
}
7777

@@ -140,7 +140,7 @@ ${versionMismatches.map((dep) => `- ${dep.name}@${dep.version}`).join("\n")}\n`
140140
logger.log(
141141
`${chalkError(
142142
"X Error:"
143-
)} Update required: Version mismatches will cause errors and headaches. Don't use \`--skip-update-check\`, just update, please.\n`
143+
)} Update required: Version mismatches are a common source of bugs and errors. Please update or use \`--skip-update-check\` at your own risk.\n`
144144
);
145145
process.exit(1);
146146
}

0 commit comments

Comments
 (0)