fix: improve error handling for CSV import in upload and ScheduleView
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 51s

This commit is contained in:
Torsten Schulz (local)
2026-07-17 13:48:56 +02:00
parent 370df07c2a
commit 35031e3ae5
2 changed files with 13 additions and 3 deletions

View File

@@ -16,7 +16,9 @@ export const uploadCSV = async (req, res) => {
});
} catch (error) {
console.error('Error importing CSV:', error);
return res.status(500).json({ error: 'Failed to import CSV data' });
return res.status(500).json({
error: error.message || 'Failed to import CSV data'
});
}
};