Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend network error processing #397

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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