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]]
|
[[package]]
|
||||||
name = "reminder-rs"
|
name = "reminder-rs"
|
||||||
version = "1.7.35"
|
version = "1.7.36"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64 0.22.1",
|
"base64 0.22.1",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "reminder-rs"
|
name = "reminder-rs"
|
||||||
version = "1.7.35"
|
version = "1.7.36"
|
||||||
authors = ["Jude Southworth <judesouthworth@pm.me>"]
|
authors = ["Jude Southworth <judesouthworth@pm.me>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "AGPL-3.0 only"
|
license = "AGPL-3.0 only"
|
||||||
@ -59,7 +59,7 @@ assets = [
|
|||||||
["reminder-dashboard/dist/index.html", "lib/reminder-rs/static/index.html", "644"],
|
["reminder-dashboard/dist/index.html", "lib/reminder-rs/static/index.html", "644"],
|
||||||
["conf/default.env", "etc/reminder-rs/config.env", "600"],
|
["conf/default.env", "etc/reminder-rs/config.env", "600"],
|
||||||
["conf/Rocket.toml", "etc/reminder-rs/Rocket.toml", "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"]
|
# ["nginx/reminder-rs", "etc/nginx/sites-available/reminder-rs", "755"]
|
||||||
]
|
]
|
||||||
conf-files = [
|
conf-files = [
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
export const GuildError = () => {
|
export const GuildError = ({ message }: { message: string }) => {
|
||||||
return (
|
return (
|
||||||
<div class="hero is-fullheight">
|
<div class="hero is-fullheight">
|
||||||
<div class="hero-body">
|
<div class="hero-body">
|
||||||
@ -11,6 +11,9 @@ export const GuildError = () => {
|
|||||||
<br />
|
<br />
|
||||||
Otherwise, please check Reminder Bot is in the server, and has correct
|
Otherwise, please check Reminder Bot is in the server, and has correct
|
||||||
permissions.
|
permissions.
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
Error code: <code>{message}</code>
|
||||||
</p>
|
</p>
|
||||||
<a
|
<a
|
||||||
class="button is-size-4 is-rounded is-success"
|
class="button is-size-4 is-rounded is-success"
|
||||||
|
@ -16,7 +16,7 @@ export const Guild = ({ children }: PropsWithChildren) => {
|
|||||||
if (!isSuccess) {
|
if (!isSuccess) {
|
||||||
return <></>;
|
return <></>;
|
||||||
} else if (guildInfo.error) {
|
} else if (guildInfo.error) {
|
||||||
return <GuildError />;
|
return <GuildError message={guildInfo.error} />;
|
||||||
} else {
|
} else {
|
||||||
const importModal = createPortal(<Import />, document.getElementById("bottom-sidebar"));
|
const importModal = createPortal(<Import />, document.getElementById("bottom-sidebar"));
|
||||||
const path = usePathname();
|
const path = usePathname();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user