From a76904d8d29407bf33d02c11726a61242e554825 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 26 Jul 2024 22:42:24 +0200 Subject: [PATCH] fix: allow colors for bun and log error directly --- backend/windmill-worker/src/bun_executor.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/windmill-worker/src/bun_executor.rs b/backend/windmill-worker/src/bun_executor.rs index 5868bf46d7..209e0b10cb 100644 --- a/backend/windmill-worker/src/bun_executor.rs +++ b/backend/windmill-worker/src/bun_executor.rs @@ -869,6 +869,7 @@ async function run() {{ try {{ await run(); }} catch(e) {{ + console.error(e); let err = {{ message: e.message, name: e.name, stack: e.stack }}; let step_id = process.env.WM_FLOW_STEP_ID; if (step_id) {{ @@ -1146,7 +1147,7 @@ pub async fn get_common_bun_proc_envs(base_internal_url: &str) -> HashMap