Skip to content
Snippets Groups Projects
Commit 5c236d67 authored by Karsch Lukas's avatar Karsch Lukas
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent 85f6b8d9
No related branches found
No related tags found
Loading
......@@ -36,13 +36,9 @@ function Login() {
navigate('/');
} else {
// @ts-ignore
const reader = res.body.getReader();
const { value, done } = await reader.read();
if (!done) {
const text = new TextDecoder().decode(value);
window.alert(text)
console.error(text);
const errorMessage = await res.text();
console.error(errorMessage)
window.alert(errorMessage);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment