mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-04 05:05:59 +00:00
Fix error dialog
This commit is contained in:
parent
ee7df0a109
commit
a1a7ab024a
|
@ -37,7 +37,7 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
|
||||||
if (v.reason) str += `${v.reason}\n`;
|
if (v.reason) str += `${v.reason}\n`;
|
||||||
if (v.error?.message)
|
if (v.error?.message)
|
||||||
str += `${v.error.name ?? "unknown"}: ${v.error.message}\n`;
|
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;
|
return str;
|
||||||
}, [props, location]);
|
}, [props, location]);
|
||||||
|
|
Loading…
Reference in a new issue