From abbec70a6a7683c866a33570b993195a3d6f52c2 Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Wed, 26 Mar 2025 12:03:32 +0100 Subject: [PATCH] use console.error --- cli.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cli.js b/cli.js index 956b4d8..7a3a5cc 100644 --- a/cli.js +++ b/cli.js @@ -25,7 +25,8 @@ const isInBrowser = false; console = { - log: print + log: globalThis?.console?.log ?? print, + error: globalThis?.console?.error ?? print, } const isD8 = typeof Realm !== "undefined"; @@ -57,8 +58,9 @@ async function runJetStream() { await JetStream.initialize(); await JetStream.start(); } catch (e) { - console.log("JetStream3 failed: " + e); - console.log(e.stack); + console.error("JetStream3 failed: " + e); + console.error(e.stack); + throw e; } } runJetStream();