mol_wire_lib 1.0.939 → 1.0.940

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
@@ -2635,8 +2635,9 @@ var $;
2635
2635
  shell: true,
2636
2636
  env: this.$mol_env(),
2637
2637
  });
2638
- if (res.status || res.error)
2639
- return $mol_fail(res.error || new Error(res.stderr.toString()));
2638
+ if (res.status || res.error) {
2639
+ return $mol_fail(res.error || new Error(res.stderr.toString(), { cause: res.stdout }));
2640
+ }
2640
2641
  if (!res.stdout)
2641
2642
  res.stdout = Buffer.from([]);
2642
2643
  return res;