We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20bb6ab commit fdbb7b7Copy full SHA for fdbb7b7
src/cli/CLI.ts
@@ -136,9 +136,9 @@ export class CLI {
136
});
137
138
cmd?.on('exit', async code => {
139
- handlers?.onStdOut?.(`Exited with code ${code}\n`);
140
const error = stderr || CLI.getErrorsFromStdOut(stdout);
141
if (error || code !== 0) {
+ handlers?.onStdOut?.(`Exited with code ${code}\n`);
142
const finalError = CLI.filterInfoFromOutput(error || stdout);
143
rej(new Error(finalError));
144
} else {
0 commit comments