Skip to content

Commit b0cddd8

Browse files
committed
chore(pyroerror): improve error messages
Signed-off-by: Evan Song <theevansong@gmail.com>
1 parent 8c2294a commit b0cddd8

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

apps/frontend/src/components/ui/servers/PyroError.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
>
2323
{{ message }}
2424
</h2>
25-
<p class="m-0 max-w-md text-center leading-relaxed text-secondary">
25+
<p v-if="serverId" class="m-0 max-w-md text-center leading-relaxed text-secondary">
26+
If this issue persists, contact Modrinth support and provide the following server ID:
27+
<UiCopyCode :text="serverId" />
28+
</p>
29+
<p v-else class="m-0 max-w-md text-center leading-relaxed text-secondary">
2630
If this issue persists, contact Modrinth support.
2731
</p>
2832
<div class="flex flex-row gap-4">
@@ -56,6 +60,11 @@ defineProps({
5660
type: String,
5761
required: true,
5862
},
63+
serverId: {
64+
type: String,
65+
default: "",
66+
required: false,
67+
},
5968
});
6069
</script>
6170

apps/frontend/src/pages/servers/manage/[id].vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<template>
22
<div class="contents">
3-
<UiServersPyroError v-if="error" :title="errorTitle" :message="errorMessage" />
3+
<UiServersPyroError
4+
v-if="error"
5+
:title="errorTitle"
6+
:message="errorMessage"
7+
:server-id="serverData?.server_id"
8+
/>
49
<div
510
v-if="serverData && serverData.status !== 'installing'"
611
data-pyro-server-manager-root

0 commit comments

Comments
 (0)