feat: show error on broken recipe url's (#2197)

This commit is contained in:
Zaki Ali
2025-04-15 09:49:06 -07:00
committed by GitHub
parent beb5d4a63e
commit 6549b6d429
2 changed files with 11 additions and 3 deletions
+5 -3
View File
@@ -22,16 +22,18 @@ export function ErrorUI({ error }) {
<AlertTriangle className="w-8 h-8 text-destructive" />
</div>
<h1 className="text-2xl font-semibold text-foreground">Honk!</h1>
<h1 className="text-2xl font-semibold text-foreground dark:text-white">Honk!</h1>
<p className="text-base text-textSubtle mb-2">An error occurred.</p>
<p className="text-base text-textSubtle dark:text-muted-foreground mb-2">
An error occurred.
</p>
<pre className="text-destructive text-sm dark:text-white p-4 bg-muted rounded-lg w-full overflow-auto border border-border">
{error.message}
</pre>
<Button
className="flex items-center gap-2 flex-1 justify-center text-white dark:text-textSubtle bg-black dark:bg-white hover:bg-subtle"
className="flex items-center gap-2 flex-1 justify-center text-white dark:text-background bg-black dark:bg-foreground hover:bg-subtle dark:hover:bg-muted"
onClick={() => window.electron.reloadApp()}
>
Reload