mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: dont log 100000000 chars of URL (#16800)
This commit is contained in:
committed by
Shelley Vohr
parent
29501dbd01
commit
4f8ebafa97
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user