We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 014228f commit 356081dCopy full SHA for 356081d
packages/next/src/server/config.ts
@@ -1971,18 +1971,7 @@ async function validateConfigSchema(
1971
}
1972
1973
const fullErrorMessage = errorMessages.join('\n')
1974
-
1975
- let err: Error
1976
- // Hide the stack trace for this error as the trace is not useful here.
1977
- const stackTraceLimit = Error.stackTraceLimit
1978
- Error.stackTraceLimit = 0
1979
- try {
1980
- err = new Error(fullErrorMessage)
1981
- } finally {
1982
- Error.stackTraceLimit = stackTraceLimit
1983
- }
1984
1985
- throw err
+ throw new Error(fullErrorMessage)
1986
1987
1988
0 commit comments