c trop bieeeen

This commit is contained in:
Guillem George 2026-05-16 17:18:47 +02:00
parent 50d46d0f0c
commit c6f5ab3438
6 changed files with 83 additions and 13 deletions

View file

@ -11,8 +11,12 @@ async function getStudent(login) {
method: "GET",
});
if (!response.ok) {
console.error("Could not retrieve student: " + response.statusText);
if (!response || !response.ok) {
console.error(
"Could not retrieve student: " + response
? response.statusText
: " no status text",
);
console.debug(await response.text());
return;
}