mirror of
https://github.com/koreanbots/core.git
synced 2025-12-17 14:50:24 +00:00
chore: Just sending Internal Server Error
This commit is contained in:
parent
16d440cf69
commit
98adfabc5d
@ -11,7 +11,7 @@ const Fetch = async <T>(endpoint: string, options?: RequestInit):Promise<Respons
|
|||||||
try {
|
try {
|
||||||
json = await res.json()
|
json = await res.json()
|
||||||
} catch {
|
} catch {
|
||||||
json = { code: 500, message: (await res.text()) }
|
json = { code: 500, message: 'Internal Server Error' }
|
||||||
}
|
}
|
||||||
|
|
||||||
return json
|
return json
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user