mol_plot_all 1.2.935 → 1.2.936

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
@@ -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;
package/node.test.js CHANGED
@@ -2016,8 +2016,9 @@ var $;
2016
2016
  shell: true,
2017
2017
  env: this.$mol_env(),
2018
2018
  });
2019
- if (res.status || res.error)
2020
- return $mol_fail(res.error || new Error(res.stderr.toString()));
2019
+ if (res.status || res.error) {
2020
+ return $mol_fail(res.error || new Error(res.stderr.toString(), { cause: res.stdout }));
2021
+ }
2021
2022
  if (!res.stdout)
2022
2023
  res.stdout = Buffer.from([]);
2023
2024
  return res;