forked from polka_billy/porridger
Code styling changes
This commit is contained in:
@ -4,11 +4,11 @@ const handleHTTPErrors = (res: Response) => {
|
||||
if (!res.ok) {
|
||||
switch (res.status) {
|
||||
case 401:
|
||||
throw new Error("Ошибка авторизации")
|
||||
throw new Error('Ошибка авторизации')
|
||||
case 404:
|
||||
throw new Error("Объект не найден")
|
||||
throw new Error('Объект не найден')
|
||||
default: {
|
||||
throw new Error("Ошибка ответа от сервера")
|
||||
throw new Error('Ошибка ответа от сервера')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user