Improve error message

This commit is contained in:
jude 2025-03-08 18:14:16 +00:00
parent baa1f2a229
commit f87f5ff286
5 changed files with 7 additions and 4 deletions

2
Cargo.lock generated
View File

@ -2614,7 +2614,7 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
[[package]]
name = "reminder-rs"
version = "1.7.35"
version = "1.7.36"
dependencies = [
"base64 0.22.1",
"chrono",

View File

@ -1,6 +1,6 @@
[package]
name = "reminder-rs"
version = "1.7.35"
version = "1.7.36"
authors = ["Jude Southworth <judesouthworth@pm.me>"]
edition = "2021"
license = "AGPL-3.0 only"

View File

@ -1,4 +1,4 @@
export const GuildError = () => {
export const GuildError = ({ message }: { message: string }) => {
return (
<div class="hero is-fullheight">
<div class="hero-body">
@ -11,6 +11,9 @@ export const GuildError = () => {
<br />
Otherwise, please check Reminder Bot is in the server, and has correct
permissions.
<br />
<br />
Error code: <code>{message}</code>
</p>
<a
class="button is-size-4 is-rounded is-success"

View File

@ -16,7 +16,7 @@ export const Guild = ({ children }: PropsWithChildren) => {
if (!isSuccess) {
return <></>;
} else if (guildInfo.error) {
return <GuildError />;
return <GuildError message={guildInfo.error} />;
} else {
const importModal = createPortal(<Import />, document.getElementById("bottom-sidebar"));
const path = usePathname();