This commit is contained in:
The Ghost of FOSS' Past 2024-10-28 13:21:04 -05:00
parent 4a5139857d
commit edfab5d03e

View file

@ -86,7 +86,6 @@ app.get('/download', (req, res) => {
console.log('Downloaded file path:', downloadedFilePath); console.log('Downloaded file path:', downloadedFilePath);
if (!downloadedFilePath || !fs.existsSync(downloadedFilePath)) { if (!downloadedFilePath || !fs.existsSync(downloadedFilePath)) {
console.log(`${downloadedFilePath}`)
console.error('Error: Downloaded file not found or invalid path.'); console.error('Error: Downloaded file not found or invalid path.');
return res.status(500).json({ error: 'Downloaded file not found or invalid path.' }); return res.status(500).json({ error: 'Downloaded file not found or invalid path.' });
} }