Skip to content

Commit

Permalink
Add a bit more logging to try to better understand an assert_never
Browse files Browse the repository at this point in the history
…that is appearing in the telemetry.
  • Loading branch information
msfterictraut committed Jan 10, 2023
1 parent 09ce380 commit 8388cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pyright-internal/src/analyzer/typeEvaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ export function createTypeEvaluator(importLookup: ImportLookup, evaluatorOptions
}

default:
assertNever(node);
assertNever(node, `Illegal node type: ${(node as any).nodeType}`);
}

if (!typeResult) {
Expand Down

0 comments on commit 8388cb0

Please sign in to comment.