c trop bieeeen
This commit is contained in:
parent
50d46d0f0c
commit
c6f5ab3438
6 changed files with 83 additions and 13 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue