Skip to content

Commit 9544589

Browse files
committed
show error in stderr
1 parent 3ce1718 commit 9544589

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/cli/src/commands/test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,11 @@ async function runBinary(
176176
await fs.promises.chmod(binPath, '755');
177177
}
178178
} catch (e) {
179-
this.warn(`Failed to download matchstick binary for your platform: ${e.message}`);
180-
this.warn('Consider using -d flag to run it in Docker instead:');
181-
this.warn(' graph test -d');
182-
process.exit(1);
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+
`);
183184
}
184185

185186
const args = [];
@@ -190,8 +191,7 @@ async function runBinary(
190191
const child = spawn(binPath, args, { stdio: 'inherit' });
191192
const [code] = await events.once(child, 'exit');
192193
if (code !== 0) {
193-
this.warn('Matchstick tests failed');
194-
process.exit(1);
194+
this.error('Matchstick failed');
195195
}
196196
}
197197

0 commit comments

Comments
 (0)