|
|
|
@ -17,9 +17,11 @@ function setupFetchDebugging() { |
|
|
|
|
try { |
|
|
|
|
return await originalFetch.call(window, ...args) |
|
|
|
|
} catch (err) { |
|
|
|
|
console.warn('FetchDebugger - fetch encountered an Error', err) |
|
|
|
|
if (!err.stack) { |
|
|
|
|
console.warn('FetchDebugger - fetch encountered an Error without a stack', err) |
|
|
|
|
console.warn('FetchDebugger - overriding stack to point of original call') |
|
|
|
|
err.stack = initialStack
|
|
|
|
|
} |
|
|
|
|
throw err |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|