Skip to content

Commit

Permalink
Extend network error processing
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIMkaRU committed Aug 27, 2024
1 parent 9ad4c9e commit 9ec31d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/error-manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ const cleanStack = require('clean-stack')

const isDevEnv = process.env.NODE_ENV === 'development'

const { isENetError } = require(
'../../bfx-reports-framework/workers/loc.api/helpers/api-errors-testers'
)

const log = require('./log')
const getErrorDescription = require('./get-error-description')
const showModalDialog = require('./show-modal-dialog')
Expand Down Expand Up @@ -216,8 +220,8 @@ const initLogger = () => {
* - GitHub server can't respond to the auto-update requests
*/
if (
isENetError(error) ||
/Cannot download differentially/gi.test(error) ||
/ERR_CONNECTION_REFUSED/gi.test(error) ||
/objects\.githubusercontent\.com/gi.test(error) ||
/Error: ERR_FAILED \(-2\) loading 'file:.*\.html'/gi.test(error) ||
/Failed to generate PDF/gi.test(error)
Expand Down

0 comments on commit 9ec31d9

Please sign in to comment.