mol_tree2 1.0.624 → 1.0.626

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.
package/node.test.js CHANGED
@@ -2368,8 +2368,9 @@ var $;
2368
2368
  shell: true,
2369
2369
  env: this.$mol_env(),
2370
2370
  });
2371
- if (res.status || res.error)
2372
- return $mol_fail(res.error || new Error(res.stderr.toString()));
2371
+ if (res.status || res.error) {
2372
+ return $mol_fail(res.error || new Error(res.stderr.toString(), { cause: res.stdout }));
2373
+ }
2373
2374
  if (!res.stdout)
2374
2375
  res.stdout = Buffer.from([]);
2375
2376
  return res;