Skip to content

Commit 10aba79

Browse files
author
alexlee-dev
committed
✏️ Add additional logging when an error occurs
1 parent 4f6ec24 commit 10aba79

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Warning about unusable Node version (less than v10.0.0)
1313
- Wrapper to check if directory exists before removing with `rimraf`
14+
- Additional logging when an error occurs
1415

1516
### Changed
1617

src/util.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ export const executeCommand = async (
2020
const cp = spawn(command, args, options);
2121
cp.on("error", (err: Error) => {
2222
if (err) {
23+
console.log({ command, args, options });
2324
reject(err.message);
2425
}
2526
});
2627
cp.on("exit", (code: number | null, signal) => {
2728
if (code !== 0) {
28-
reject({ code, signal });
29+
reject({ args, command, code, signal, options });
2930
}
3031
resolve();
3132
});

0 commit comments

Comments
 (0)