File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/@vue/cli/lib/util Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,17 @@ exports.generateTitle = async function (checkUpdate) {
29
29
const { current, latest, error } = await getVersions ( )
30
30
let title = chalk . bold . blue ( `Vue CLI v${ current } ` )
31
31
32
- if ( error ) {
33
- title += '\n' + chalk . red ( 'Failed to check for updates' )
34
- }
35
-
36
32
if ( process . env . VUE_CLI_TEST ) {
37
33
title += ' ' + chalk . blue . bold ( 'TEST' )
38
34
}
39
35
if ( process . env . VUE_CLI_DEBUG ) {
40
36
title += ' ' + chalk . magenta . bold ( 'DEBUG' )
41
37
}
42
38
39
+ if ( error ) {
40
+ title += '\n' + chalk . red ( 'Failed to check for updates' )
41
+ }
42
+
43
43
if ( checkUpdate && ! error && semver . gt ( latest , current ) ) {
44
44
if ( process . env . VUE_CLI_API_MODE ) {
45
45
title += chalk . green ( ` 🌟️ New version available: ${ latest } ` )
You can’t perform that action at this time.
0 commit comments