Skip to content

Commit

Permalink
Merge pull request #397 from ZIMkaRU/feature/extend-network-error-pro…
Browse files Browse the repository at this point in the history
…cessing

Extend network error processing
  • Loading branch information
ezewer authored Aug 28, 2024
2 parents 3867172 + 9ec31d9 commit 7c325b6
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 7c325b6

Please sign in to comment.