kodevu 0.1.59 → 0.1.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/reviewers.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kodevu",
3
- "version": "0.1.59",
3
+ "version": "0.1.60",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Poll SVN revisions or Git commits, send each change diff to a reviewer CLI, and write configurable review reports.",
package/src/reviewers.js CHANGED
@@ -227,11 +227,13 @@ export const REVIEWERS = {
227
227
  };
228
228
  } catch (error) {
229
229
  const timedOut = error?.name === "TimeoutError" || error?.name === "AbortError";
230
+ const baseMessage = error?.message || String(error);
231
+ const causeMessage = error?.cause ? ` (Cause: ${error.cause.message || String(error.cause)})` : "";
230
232
  return {
231
233
  code: 1,
232
234
  timedOut,
233
235
  stdout: "",
234
- stderr: error?.message || String(error),
236
+ stderr: `${baseMessage}${causeMessage}`,
235
237
  message: ""
236
238
  };
237
239
  }