Nachricht bei timeout
This commit is contained in:
@@ -145,6 +145,10 @@ async function getUntis(weekDate) {
|
|||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
if (error.message.includes("timeout")) {
|
||||||
|
if (teachingContent != "") teachingContent += '\n';
|
||||||
|
teachingContent = "--- Timeout beim Abrufen der Unterrichtsinhalte ---";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
startDate.setDate(startDate.getDate() + 1);
|
startDate.setDate(startDate.getDate() + 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user