File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed
Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -749,24 +749,14 @@ export class OdoImpl implements Odo {
749749 const commandPrivacy = `${ command . privacyMode ( true ) } ` ;
750750 const [ cmd ] = commandActual . split ( ' ' ) ;
751751 const toolLocation = await ToolsConfig . detect ( cmd ) ;
752- let result : cliInstance . CliExitData ;
753- try {
754- result = await OdoImpl . cli . execute (
755- toolLocation ? commandActual . replace ( cmd , `"${ toolLocation } "` ) : commandActual ,
756- cwd ? { cwd} : { }
757- ) ;
758- } catch ( ex ) {
759- if ( fail ) {
760- throw new VsCommandError ( `${ ex } ` , `Error when running command: ${ commandPrivacy } ` , ex ) ;
761- } else {
762- return { error : null , stdout : '' , stderr : '' } ;
763- }
764- } ;
752+ const result : cliInstance . CliExitData = await OdoImpl . cli . execute (
753+ toolLocation ? commandActual . replace ( cmd , `"${ toolLocation } "` ) : commandActual ,
754+ cwd ? { cwd} : { }
755+ ) ;
765756 if ( result . error && fail ) {
766757 throw new VsCommandError ( `${ result . error } ` , `Error when running command: ${ commandPrivacy } ` , result . error ) ;
767758 } ;
768759 return result ;
769-
770760 }
771761
772762 public async spawn ( command : string , cwd ?: string ) : Promise < ChildProcess > {
You can’t perform that action at this time.
0 commit comments