这是indexloc提供的服务,不要输入任何密码
Skip to content
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
13 changes: 10 additions & 3 deletions src/error-manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,16 @@ const initLogger = () => {
if (message.level === 'error') {
const error = message.data.join(os.EOL)

// Don't open a new issue when can't download differentially
// it would fallback to full download
if (/Cannot download differentially/gi.test(error)) {
/*
* Don't open a new issue when:
* - It can't download differentially it would fallback to full download
* - GitHub server can't respond to the auto-update requests
*/
if (
/Cannot download differentially/gi.test(error) ||
/ERR_CONNECTION_REFUSED/gi.test(error) ||
/objects\.githubusercontent\.com/gi.test(error)
) {
return message
}

Expand Down