Skip to content

Commit b7bce69

Browse files
authored
Add flag to show ignore listed frames (#86285)
1 parent e0008a9 commit b7bce69

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/next/src/server/patch-error-inspect.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,7 @@ function parseAndSourceMap(
327327
error: Error,
328328
inspectOptions: util.InspectOptions
329329
): string {
330-
// TODO(veil): Expose as CLI arg or config option. Useful for local debugging.
331-
const showIgnoreListed = false
330+
const showIgnoreListed = process.env.__NEXT_SHOW_IGNORE_LISTED === 'true'
332331
// We overwrote Error.prepareStackTrace earlier so error.stack is not sourcemapped.
333332
let unparsedStack = String(error.stack)
334333
// We could just read it from `error.stack`.

0 commit comments

Comments
 (0)