File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,19 @@ async function runAngularWizardWithTelemetry(
6262
6363 installedAngularVersion = await abortIfCancelled (
6464 clack . text ( {
65- message : 'Please enter the installed Angular version: ' ,
65+ message : `Please enter your installed Angular major version (e.g. ${ chalk . cyan (
66+ '18' ,
67+ ) } for Angular 18)`,
6668 validate ( value ) {
6769 if ( ! value ) {
68- return 'Please enter the installed Angular version. ' ;
70+ return 'Angular version is required ' ;
6971 }
7072
71- if ( ! minVersion ( value ) ) {
73+ try {
74+ if ( ! minVersion ( value ) ) {
75+ return `Invalid Angular version provided: ${ value } ` ;
76+ }
77+ } catch ( error ) {
7278 return `Invalid Angular version provided: ${ value } ` ;
7379 }
7480 } ,
@@ -179,6 +185,6 @@ async function runAngularWizardWithTelemetry(
179185
180186 clack . outro ( `
181187 ${ chalk . green (
182- 'Sentry has been successfully configured for your Angular project.' ,
183- ) } `) ;
188+ 'Sentry has been successfully configured for your Angular project.' ,
189+ ) } `) ;
184190}
You can’t perform that action at this time.
0 commit comments