Skip to content

Commit

Permalink
display simple 500 error
Browse files Browse the repository at this point in the history
  • Loading branch information
motdotla committed Jun 16, 2024
1 parent 6139add commit a5620c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ app.get('/v2/:os/:arch(*)', async (req, res) => {
const readStream = fs.createReadStream(tmpTarPath)
readStream.pipe(res)
} catch (error) {
res.status(500).send('Error occurred while fetching the file: ' + error.message)
console.log('error', error.message)

res.status(500).send('500 error')
}
})

Expand Down

0 comments on commit a5620c8

Please sign in to comment.