mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
ugh
This commit is contained in:
1 parent
0de762eb03
commit
f7ed8843e7
1 file changed
+4
@@ -152,6 +152,10 @@ export class FluxerListManager {
|
|||||||
if (res.status === 403) {
|
if (res.status === 403) {
|
||||||
throw new Error("FluxerList API key does not belong to this resource owner.");
|
throw new Error("FluxerList API key does not belong to this resource owner.");
|
||||||
}
|
}
|
||||||
|
if (res.status === 404) {
|
||||||
|
const label = type === "server" ? "Server" : "Bot";
|
||||||
|
throw new Error(`${label} "${resourceId}" was not found on FluxerList. Make sure the slug in your config is correct — it should match the URL slug (e.g. "remix" from fluxerlist.com/bots/remix).`);
|
||||||
|
}
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
const text = await res.text().catch(() => "");
|
const text = await res.text().catch(() => "");
|
||||||
throw new Error(`FluxerList API error (HTTP ${res.status}): ${text.slice(0, 200)}`);
|
throw new Error(`FluxerList API error (HTTP ${res.status}): ${text.slice(0, 200)}`);
|
||||||
|
|||||||
Reference in new issue
Block a user