Update dependencies in package.json and package-lock.json; add testing scripts for Vitest, and include new packages such as supertest and vitest. Refactor Navigation component to improve event handling and cleanup, ensuring better performance and user experience. Enhance error handling in various API endpoints for PDF uploads and CSV saves, ensuring robust error propagation. Update nodemailer transport configuration for consistency across API handlers.
This commit is contained in:
@@ -44,6 +44,9 @@ export default defineEventHandler(async (event) => {
|
||||
|
||||
} catch (error) {
|
||||
console.error('Fehler beim Speichern der CSV-Datei:', error)
|
||||
if (error.statusCode) {
|
||||
throw error
|
||||
}
|
||||
throw createError({
|
||||
statusCode: 500,
|
||||
statusMessage: 'Fehler beim Speichern der Datei'
|
||||
|
||||
Reference in New Issue
Block a user