mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 04:13:41 -05:00
Remove special code for handling RequestFailedErrors
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com> GitOrigin-RevId: 821826fa56b89176b615e026f11db0b7fcfcbd30
This commit is contained in:
parent
0e89857a9f
commit
f54b257022
1 changed files with 2 additions and 8 deletions
|
@ -5,7 +5,7 @@ const _ = require('lodash')
|
|||
const { URL } = require('url')
|
||||
const Path = require('path')
|
||||
const moment = require('moment')
|
||||
const { fetchJson, RequestFailedError } = require('@overleaf/fetch-utils')
|
||||
const { fetchJson } = require('@overleaf/fetch-utils')
|
||||
const contentDisposition = require('content-disposition')
|
||||
const Features = require('./Features')
|
||||
const SessionManager = require('../Features/Authentication/SessionManager')
|
||||
|
@ -60,13 +60,7 @@ function loadManifestFromWebpackDevServer(done = function () {}) {
|
|||
webpackManifest = json
|
||||
done()
|
||||
})
|
||||
.catch(err => {
|
||||
let error = err
|
||||
if (err instanceof RequestFailedError) {
|
||||
error = new Error(
|
||||
`webpack responded with statusCode: ${err.response.status}`
|
||||
)
|
||||
}
|
||||
.catch(error => {
|
||||
logger.err({ error }, 'cannot fetch webpack manifest')
|
||||
done(error)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue