patches
This commit is contained in:
parent
4a5139857d
commit
edfab5d03e
1 changed files with 0 additions and 1 deletions
1
index.js
1
index.js
|
@ -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.' });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue