fix: expose error message in api for debugging

This commit is contained in:
Jannik committed 2026-09-05 18:24:25 +02:00
1 parent b34afacb53
commit 279cecb046
2 files changed
+1 -1

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ router.post('/', upload.single('audio'), async (req, res) => {
} catch (err) {
console.error('Recognition error:', err.message);
res.status(500).json({ error: 'Failed to recognize audio' });
res.status(500).json({ error: 'Failed to recognize audio: ' + err.message });
} finally {
// Clean up uploaded file
fs.unlink(filePath, () => {});
BIN
View File
Binary file not shown.