Enhance security and error handling in various components by refining error catch blocks to ignore specific errors, improving code clarity and consistency across the application.

This commit is contained in:
Torsten Schulz (local)
2025-12-20 15:05:49 +01:00
parent 3e956ac46b
commit d89cabdd34
42 changed files with 117 additions and 113 deletions

View File

@@ -8,7 +8,7 @@ export default defineEventHandler(async (event) => {
// Prüfe ob Datei existiert
try {
await fs.access(filePath)
} catch (error) {
} catch (_error) {
return {
success: false,
message: 'Spielplan-Datei nicht gefunden',