Skip to content

Commit c8f5cd3

Browse files
attach sdout to error
Co-authored-by: JadenSimon <[email protected]>
1 parent 54ed468 commit c8f5cd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ec2/sshKeyPair.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class SshKeyPair {
2424
const process = new ChildProcess(`ssh-keygen`, ['-t', 'rsa', '-N', '', '-q', '-f', keyPath])
2525
const result = await process.run()
2626
if (result.exitCode !== 0) {
27-
throw new ToolkitError('ec2: Failed to generate ssh key')
27+
throw new ToolkitError('ec2: Failed to generate ssh key', { details: { stdout: result.stdout } })
2828
}
2929
}
3030

0 commit comments

Comments
 (0)