Refactor error handling in various components to ignore modal display failures and improve code clarity

This commit is contained in:
Torsten Schulz (local)
2025-12-20 10:19:29 +01:00
parent 3d49f3e73a
commit a00ed9723d
9 changed files with 46 additions and 17 deletions

View File

@@ -104,7 +104,9 @@ export default defineEventHandler(async (event) => {
.toFile(newPath)
// Temporäre Datei löschen
await fs.unlink(originalPath).catch(() => {})
await fs.unlink(originalPath).catch(() => {
// Datei bereits gelöscht oder nicht vorhanden, ignorieren
})
return {
success: true,