@absolutejs/voice 0.0.22-beta.83 → 0.0.22-beta.84
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.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12543,11 +12543,13 @@ var createOpenAIVoiceTTS = (options) => {
|
|
|
12543
12543
|
if (closed || abortController.signal.aborted) {
|
|
12544
12544
|
return;
|
|
12545
12545
|
}
|
|
12546
|
+
const normalizedError = error instanceof Error ? error : new Error(String(error));
|
|
12546
12547
|
await emit(listeners, "error", {
|
|
12547
|
-
error:
|
|
12548
|
+
error: normalizedError,
|
|
12548
12549
|
recoverable: true,
|
|
12549
12550
|
type: "error"
|
|
12550
12551
|
});
|
|
12552
|
+
throw normalizedError;
|
|
12551
12553
|
}
|
|
12552
12554
|
}
|
|
12553
12555
|
};
|