From 25ba45ed34e440c0dd7875ad6e501a3ae40c30d7 Mon Sep 17 00:00:00 2001 From: vlado Date: Tue, 10 Jun 2025 11:57:22 +0200 Subject: [PATCH] gracegully deserialize --- perf/runner/src/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/perf/runner/src/index.ts b/perf/runner/src/index.ts index 4e99323f5..4042b5632 100644 --- a/perf/runner/src/index.ts +++ b/perf/runner/src/index.ts @@ -208,8 +208,12 @@ function runClient(args: ArgsRunBenchmark): ResultValue[] { const combined: ResultValue[] = []; for (const line of lines) { - const result = JSON.parse(line) as ResultValue; - combined.push(result); + try { + const result = JSON.parse(line) as ResultValue; + combined.push(result); + } catch (error) { + console.error(`Could not parse ResultValue from line: ${line}`) + } } return combined;