mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Add error handling for issue creation and commenting
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user