* fix error message copy-paste erorr * Update companion.js
@@ -106,7 +106,7 @@ const get = async (req, res) => {
function onUnhandledError (err) {
logger.error(err, 'controller.url.error', req.id)
- res.status(err.status || 500).json({ message: 'failed to fetch URL metadata' })
+ res.status(err.status || 500).json({ message: 'failed to fetch URL' })
}
startDownUpload({ req, res, getSize, download, onUnhandledError })
@@ -245,5 +245,5 @@ it('respects allowLocalUrls, valid hostname that resolves to localhost', async (
res = await runUrlGetTest(`http://${fakeLocalhost}/`)
expect(res.statusCode).toBe(500)
- expect(res.body).toEqual({ message: 'failed to fetch URL metadata' })
+ expect(res.body).toEqual({ message: 'failed to fetch URL' })
})