@supernova-studio/model 1.48.11 → 1.48.13

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/dist/index.mjs CHANGED
@@ -963,9 +963,11 @@ var SupernovaException = class _SupernovaException extends Error {
963
963
  function errorToString(error) {
964
964
  if (error instanceof Error) {
965
965
  const errorAny = error;
966
- const stderr = errorAny.result?.stderr ?? errorAny.stderr ?? "";
967
- return stderr ? `${error.message}
968
- ${stderr}` : error.message;
966
+ const stderr = (errorAny.result?.stderr ?? errorAny.stderr ?? "").trim();
967
+ const stdout = (errorAny.result?.stdout ?? errorAny.stdout ?? "").trim();
968
+ const output = [stderr, stdout].filter(Boolean).join("\n");
969
+ return output ? `${error.message}
970
+ ${output}` : error.message;
969
971
  }
970
972
  return String(error);
971
973
  }