Skip to content

Commit 7ec9ecd

Browse files
committed
change error message
1 parent 35be6b5 commit 7ec9ecd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

packages/cli/src/commands/test.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)