chore: dont log 100000000 chars of URL (#16800)
This commit is contained in:
parent
29501dbd01
commit
4f8ebafa97
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ const NavigationController = (function () {
|
||||||
resolve()
|
resolve()
|
||||||
}
|
}
|
||||||
const rejectAndCleanup = (errorCode, errorDescription, url) => {
|
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 })
|
Object.assign(err, { errno: errorCode, code: errorDescription, url })
|
||||||
removeListeners()
|
removeListeners()
|
||||||
reject(err)
|
reject(err)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue