From 96b90312e1253b594a961a97fef79f4cfcb727d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sun, 18 Aug 2024 21:06:22 +0200 Subject: [PATCH] dev(webui): log job stream errors --- webui/src/lib/components/layout/Jobs.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webui/src/lib/components/layout/Jobs.svelte b/webui/src/lib/components/layout/Jobs.svelte index 3ba68fa..4d90daa 100644 --- a/webui/src/lib/components/layout/Jobs.svelte +++ b/webui/src/lib/components/layout/Jobs.svelte @@ -4,6 +4,7 @@ import ProgressBar from '../utils/ProgressBar.svelte'; import api from '$lib/api'; import { onMount } from 'svelte'; + import * as Sentry from '@sentry/sveltekit'; let jobs: IJob[] = []; export let active: number | null = 0; @@ -18,6 +19,8 @@ } } catch (e) { active = null; + console.error('Failed to load jobs:', e); + Sentry.captureException(e); } });