Fix error dialog

This commit is contained in:
mrjvs 2023-12-30 12:59:56 +01:00
parent ee7df0a109
commit a1a7ab024a

View File

@ -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]);