Unverified Commit 356081d5 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

Stop manually setting stacktrace limit (#84968)

parent 014228f0
...@@ -1971,18 +1971,7 @@ async function validateConfigSchema( ...@@ -1971,18 +1971,7 @@ async function validateConfigSchema(
} }
const fullErrorMessage = errorMessages.join('\n') const fullErrorMessage = errorMessages.join('\n')
throw new Error(fullErrorMessage)
let err: Error
// Hide the stack trace for this error as the trace is not useful here.
const stackTraceLimit = Error.stackTraceLimit
Error.stackTraceLimit = 0
try {
err = new Error(fullErrorMessage)
} finally {
Error.stackTraceLimit = stackTraceLimit
}
throw err
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment