chore: dont log 100000000 chars of URL (#16800)

This commit is contained in:
Samuel Attard 2019-02-07 08:50:47 -08:00 committed by Shelley Vohr
parent 29501dbd01
commit 4f8ebafa97

View file

@ -69,7 +69,7 @@ const NavigationController = (function () {
resolve()
}
const rejectAndCleanup = (errorCode, errorDescription, url) => {
const err = new Error(`${errorDescription} (${errorCode}) loading '${url}'`)
const err = new Error(`${errorDescription} (${errorCode}) loading '${typeof url === 'string' ? url.substr(0, 2048) : url}'`)
Object.assign(err, { errno: errorCode, code: errorDescription, url })
removeListeners()
reject(err)