Skip to content

Commit b285591

Browse files
committed
fix: add the error message after the DEBUG indicator
1 parent b40503f commit b285591

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/@vue/cli/lib/util/clearConsole.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ exports.generateTitle = async function (checkUpdate) {
2929
const { current, latest, error } = await getVersions()
3030
let title = chalk.bold.blue(`Vue CLI v${current}`)
3131

32-
if (error) {
33-
title += '\n' + chalk.red('Failed to check for updates')
34-
}
35-
3632
if (process.env.VUE_CLI_TEST) {
3733
title += ' ' + chalk.blue.bold('TEST')
3834
}
3935
if (process.env.VUE_CLI_DEBUG) {
4036
title += ' ' + chalk.magenta.bold('DEBUG')
4137
}
4238

39+
if (error) {
40+
title += '\n' + chalk.red('Failed to check for updates')
41+
}
42+
4343
if (checkUpdate && !error && semver.gt(latest, current)) {
4444
if (process.env.VUE_CLI_API_MODE) {
4545
title += chalk.green(` 🌟️ New version available: ${latest}`)

0 commit comments

Comments
 (0)