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 aa74221 commit f82239cCopy full SHA for f82239c
.changeset/salty-kiwis-turn.md
@@ -0,0 +1,5 @@
1
+---
2
+"cmake-rn": patch
3
4
+
5
+Pretty print spawn errors instead of simply rethrowing to commander.
packages/cmake-rn/src/cli.ts
@@ -217,9 +217,16 @@ program = program.action(
217
}
218
} catch (error) {
219
if (error instanceof SpawnFailure) {
220
+ process.exitCode = 1;
221
error.flushOutput("both");
222
+ if (baseOptions.verbose) {
223
+ console.error(
224
+ `\nFailed running: ${chalk.dim(error.command, ...error.args)}\n`,
225
+ );
226
+ }
227
+ } else {
228
+ throw error;
229
- throw error;
230
231
},
232
);
0 commit comments