mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 13:49:00 +02:00
Remove special code for handling RequestFailedErrors
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com> GitOrigin-RevId: 821826fa56b89176b615e026f11db0b7fcfcbd30
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user