File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
packages/cli/src/commands Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -176,11 +176,10 @@ async function runBinary(
176176 await fs . promises . chmod ( binPath , '755' ) ;
177177 }
178178 } catch ( e ) {
179- this . error ( `
180- Failed to download matchstick binary for your platform: ${ e . message }
181- Consider using -d flag to run it in Docker instead:
182- graph test -d
183- ` ) ;
179+ this . error (
180+ `Failed to get matchstick binary: ${ e . message } \nConsider using -d flag to run it in Docker instead:\n graph test -d` ,
181+ { exit : 1 } ,
182+ ) ;
184183 }
185184
186185 const args = [ ] ;
@@ -191,7 +190,7 @@ Consider using -d flag to run it in Docker instead:
191190 const child = spawn ( binPath , args , { stdio : 'inherit' } ) ;
192191 const [ code ] = await events . once ( child , 'exit' ) ;
193192 if ( code !== 0 ) {
194- this . error ( 'Matchstick failed' ) ;
193+ this . error ( 'Matchstick failed' , { exit : 1 } ) ;
195194 }
196195}
197196
You can’t perform that action at this time.
0 commit comments