mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 22:10: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 {
|
||||
json = await res.json()
|
||||
} catch {
|
||||
json = { code: 500, message: (await res.text()) }
|
||||
json = { code: 500, message: 'Internal Server Error' }
|
||||
}
|
||||
|
||||
return json
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user