From a1a7ab024ac86ab4fdcdf48f586588be7eec4943 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Sat, 30 Dec 2023 12:59:56 +0100 Subject: [PATCH] Fix error dialog --- src/pages/parts/player/ScrapeErrorPart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/parts/player/ScrapeErrorPart.tsx b/src/pages/parts/player/ScrapeErrorPart.tsx index 75526ca2..127a69a6 100644 --- a/src/pages/parts/player/ScrapeErrorPart.tsx +++ b/src/pages/parts/player/ScrapeErrorPart.tsx @@ -37,7 +37,7 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) { if (v.reason) str += `${v.reason}\n`; if (v.error?.message) str += `${v.error.name ?? "unknown"}: ${v.error.message}\n`; - if (v.error) str += `${v.error.toString()}\n`; + else if (v.error) str += `${v.error.toString()}\n`; }); return str; }, [props, location]);