From 8d36b88f76a56b470e57d16190f127d915e934e9 Mon Sep 17 00:00:00 2001 From: Fern Support <126544928+fern-support@users.noreply.github.com> Date: Wed, 25 Dec 2024 20:22:35 -0800 Subject: [PATCH] chore: Update README.md (#32) --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index eea8425..6ab5e89 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,6 @@ fs.writeFileSync("sonic.wav", new Uint8Array(response)); ```js import { CartesiaClient } from "@cartesia/cartesia-js"; -import process from "node:process" const cartesia = new CartesiaClient({ apiKey: process.env.CARTESIA_API_KEY, @@ -71,7 +70,7 @@ try { await websocket.connect(); } catch (error) { console.error(`Failed to connect to Cartesia: ${error}`); - process.exit(1); + throw error; } // Create a stream.