@@ -60,11 +60,11 @@ export class DebugPlatformCommand extends ValidatePlatformCommandBase implements
6060 this . $androidBundleValidatorHelper . validateNoAab ( ) ;
6161
6262 if ( ! this . $platformValidationService . isPlatformSupportedForOS ( this . platform , this . $projectData ) ) {
63- this . $errors . fail ( `Applications for platform ${ this . platform } can not be built on this OS` ) ;
63+ this . $errors . failWithoutHelp ( `Applications for platform ${ this . platform } can not be built on this OS` ) ;
6464 }
6565
6666 if ( this . $options . release ) {
67- this . $errors . fail ( "--release flag is not applicable to this command" ) ;
67+ this . $errors . failWithHelp ( "--release flag is not applicable to this command. " ) ;
6868 }
6969
7070 const result = await super . canExecuteCommandBase ( this . platform , { validateOptions : true , notConfiguredEnvOptions : { hideCloudBuildOption : true , hideSyncToPreviewAppOption : true } } ) ;
@@ -105,18 +105,18 @@ export class DebugIOSCommand implements ICommand {
105105
106106 public async canExecute ( args : string [ ] ) : Promise < ICanExecuteCommandOutput > {
107107 if ( ! this . $platformValidationService . isPlatformSupportedForOS ( this . $devicePlatformsConstants . iOS , this . $projectData ) ) {
108- this . $errors . fail ( `Applications for platform ${ this . $devicePlatformsConstants . iOS } can not be built on this OS` ) ;
108+ this . $errors . failWithoutHelp ( `Applications for platform ${ this . $devicePlatformsConstants . iOS } can not be built on this OS` ) ;
109109 }
110110
111111 const isValidTimeoutOption = this . isValidTimeoutOption ( ) ;
112112 if ( ! isValidTimeoutOption ) {
113- this . $errors . fail ( `Timeout option specifies the seconds NativeScript CLI will wait to find the inspector socket port from device's logs. Must be a number.` ) ;
113+ this . $errors . failWithoutHelp ( `Timeout option must be a number.` ) ;
114114 }
115115
116116 if ( this . $options . inspector ) {
117117 const macOSWarning = await this . $sysInfo . getMacOSWarningMessage ( ) ;
118118 if ( macOSWarning && macOSWarning . severity === SystemWarningsSeverity . high ) {
119- this . $errors . fail ( `You cannot use NativeScript Inspector on this OS. To use it, please update your OS.` ) ;
119+ this . $errors . failWithoutHelp ( `You cannot use NativeScript Inspector on this OS. To use it, please update your OS.` ) ;
120120 }
121121 }
122122 const result = await this . debugPlatformCommand . canExecute ( args ) ;
0 commit comments