frontend: better english for cookie error
Massimo Melina committed
Apr 9, 2022 at 12:17 UTC
2d75c96164731528f937da4c8703ab97d703a361
1 file changed
+2
frontend/src/login.ts
+2
@@ -39,6 +39,8 @@ export async function login(username:string, password:string) {
39
if (err instanceof ApiError)
40
if (err.code === 401)
41
err = 'Invalid credentials'
42
+ else if (err.code === 409)
43
+ err = 'Cookies not working - login failed'
44
await alertDialog(err as Error, 'error')
45
}
46
finally { stopWorking() }