chore: Just sending Internal Server Error

This commit is contained in:
Junseo Park 2021-02-17 15:15:33 +09:00
parent 16d440cf69
commit 98adfabc5d

View File

@ -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