hyoo_sync_client 0.0.354 → 0.0.355

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.mjs CHANGED
@@ -884,8 +884,9 @@ var $;
884
884
  shell: true,
885
885
  env: this.$mol_env(),
886
886
  });
887
- if (res.status || res.error)
888
- return $mol_fail(res.error || new Error(res.stderr.toString()));
887
+ if (res.status || res.error) {
888
+ return $mol_fail(res.error || new Error(res.stderr.toString(), { cause: res.stdout }));
889
+ }
889
890
  if (!res.stdout)
890
891
  res.stdout = Buffer.from([]);
891
892
  return res;
package/node.test.js CHANGED
@@ -875,8 +875,9 @@ var $;
875
875
  shell: true,
876
876
  env: this.$mol_env(),
877
877
  });
878
- if (res.status || res.error)
879
- return $mol_fail(res.error || new Error(res.stderr.toString()));
878
+ if (res.status || res.error) {
879
+ return $mol_fail(res.error || new Error(res.stderr.toString(), { cause: res.stdout }));
880
+ }
880
881
  if (!res.stdout)
881
882
  res.stdout = Buffer.from([]);
882
883
  return res;