From b3a2972d99c095557dcd42fd4e303f9a3b20697e Mon Sep 17 00:00:00 2001 From: Micah Wylde Date: Thu, 30 Nov 2023 16:25:50 -0800 Subject: [PATCH] Fix rendering of UDF errors in docker --- arroyo-console/src/routes/pipelines/CreatePipeline.tsx | 6 +----- docker/build_base/Cargo.toml | 3 ++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/arroyo-console/src/routes/pipelines/CreatePipeline.tsx b/arroyo-console/src/routes/pipelines/CreatePipeline.tsx index 7a5b4c290..5429fac48 100644 --- a/arroyo-console/src/routes/pipelines/CreatePipeline.tsx +++ b/arroyo-console/src/routes/pipelines/CreatePipeline.tsx @@ -520,11 +520,7 @@ export function CreatePipeline() { {localUdfs .filter(u => u.errors?.length) .map(u => { - const text = `"${u.errors!.join('\\n')}"`; - let content = text; - try { - content = JSON.parse(text); - } catch (e) {} + const content = u.errors!.join('\n').replaceAll('\\n', '\n'); return ( diff --git a/docker/build_base/Cargo.toml b/docker/build_base/Cargo.toml index 994e2c26e..130619a87 100644 --- a/docker/build_base/Cargo.toml +++ b/docker/build_base/Cargo.toml @@ -1,5 +1,6 @@ - [workspace] +resolver = "2" + members = [ "pipeline", "types",