mol_plot_all 1.2.935 → 1.2.937

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.js CHANGED
@@ -2025,8 +2025,9 @@ var $;
2025
2025
  shell: true,
2026
2026
  env: this.$mol_env(),
2027
2027
  });
2028
- if (res.status || res.error)
2029
- return $mol_fail(res.error || new Error(res.stderr.toString()));
2028
+ if (res.status || res.error) {
2029
+ return $mol_fail(res.error || new Error(res.stderr.toString(), { cause: res.stdout }));
2030
+ }
2030
2031
  if (!res.stdout)
2031
2032
  res.stdout = Buffer.from([]);
2032
2033
  return res;