Add error handling for issue creation and commenting

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-07-04 14:14:29 +02:00
parent 3e797a2d08
commit 0cd42908e5
4 changed files with 191 additions and 28 deletions
+17
View File
@@ -0,0 +1,17 @@
<script lang="ts">
import ErrorMessage from "@app/components/ErrorMessage.svelte";
import Modal from "@app/components/Modal.svelte";
export let title: string;
export let subtitle: string[];
export let error: Error;
</script>
<Modal {title} emoji="🚨">
<div slot="subtitle">
{@html subtitle.join("<br />")}
</div>
<div slot="body">
<ErrorMessage message={error.message} stackTrace={error.stack} />
</div>
</Modal>