improve error management

This commit is contained in:
isUnknown 2024-09-10 13:19:51 +02:00
parent a23a5ba06b
commit 2f0a8f36d8
2 changed files with 14 additions and 5 deletions

View file

@ -76,7 +76,7 @@
try {
$endTime = strlen($session['duration']) > 0 ? getEndTime($session) : false;
} catch (\Throwable $th) {
throw new Exception($session['title'], 1);
throw new Exception($session['title'] .' - ' . $th->getMessage(), 1);
}
?>
<template x-if="tab === 'Calendrier' || ('<?= $session['categories'] ?>'.length > 0 && tab.includes('<?= $session['categories'] ?>'))">