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.
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 4m10s
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 4m10s
This commit is contained in:
@@ -60,7 +60,7 @@ export default defineEventHandler(async (event) => {
|
||||
// Prüfe ob Datei existiert
|
||||
try {
|
||||
await fs.access(filePath)
|
||||
} catch (error) {
|
||||
} catch (_error) {
|
||||
// Fallback: Erstelle eine informative HTML-Seite
|
||||
const htmlContent = `
|
||||
<!DOCTYPE html>
|
||||
|
||||
Reference in New Issue
Block a user