File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ cd web-app
2828yarn build
2929cd ..
3030
31- # For Windows build: switch the next 2 lines
3231echo " Bundling webapp..."
3332if [[ " $OSTYPE " == " msys" ]]; then
3433 # linux subsystem on windows selected
Original file line number Diff line number Diff line change @@ -11,11 +11,15 @@ const runCommands = async (commands: string[] = []): Promise<void> => {
1111 title : command ,
1212 description : 'Running process...' ,
1313 }
14+ logger ( `Command: ${ command } ` )
1415 send ( { type : 'COMMAND_START' , payload : { process : { ...process , status : 'RUNNING' } } } )
1516 let result : { stdout : string ; stderr : string }
1617 try {
1718 result = await exec ( { command } )
18- logger ( `Command output: ${ JSON . stringify ( result ) } ` )
19+ if ( result . stderr ) {
20+ throw new Error ( result . stderr )
21+ }
22+ logger ( `Command output: ${ result . stdout } ` )
1923 } catch ( error : any ) {
2024 logger ( `Command failed: ${ error . message } ` )
2125 send ( { type : '' , payload : { process : { ...process , status : 'FAIL' } } } )
You can’t perform that action at this time.
0 commit comments