Improve error message
This commit is contained in:
parent
baa1f2a229
commit
a604e4d191
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2614,7 +2614,7 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
|
||||
|
||||
[[package]]
|
||||
name = "reminder-rs"
|
||||
version = "1.7.35"
|
||||
version = "1.7.36"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"chrono",
|
||||
|
@ -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"
|
||||
@ -59,7 +59,7 @@ assets = [
|
||||
["reminder-dashboard/dist/index.html", "lib/reminder-rs/static/index.html", "644"],
|
||||
["conf/default.env", "etc/reminder-rs/config.env", "600"],
|
||||
["conf/Rocket.toml", "etc/reminder-rs/Rocket.toml", "600"],
|
||||
["conf/geo-asn-country-ipv4.csv", "etc/reminder-rs/geo-asn-country-ipv4.csv", "600"],
|
||||
["conf/gb-ipv4.csv", "etc/reminder-rs/gb-ipv4.csv", "600"],
|
||||
# ["nginx/reminder-rs", "etc/nginx/sites-available/reminder-rs", "755"]
|
||||
]
|
||||
conf-files = [
|
||||
|
@ -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"
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user