Avoid overriding GitHub errors

This commit is contained in:
lowlighter
2021-03-07 09:57:32 +01:00
parent e598c0f624
commit dafcd68bd5

View File

@@ -49,7 +49,12 @@
} }
catch (error) { catch (error) {
console.debug(`metrics/compute/${login}/base > account ${account} > failed : ${error}`) console.debug(`metrics/compute/${login}/base > account ${account} > failed : ${error}`)
console.debug(`metrics/compute/${login}/base > checking next account`) if (/Could not resolve to a User with the login of/.test(error.message)) {
console.debug(`metrics/compute/${login}/base > got a "user not found" error for account type "${account}" and user "${login}"`)
console.debug(`metrics/compute/${login}/base > checking next account type`)
continue
}
throw error
} }
} }
//Not found //Not found