Skip to content

Commit 64f159c

Browse files
gnidanCopilot
andauthored
Add warning when reaching unsupported case
Co-authored-by: Copilot <[email protected]>
1 parent 22a69c9 commit 64f159c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/web/src/theme/ProgramExample/SourceContents.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ function decoratePickContext(
8181
// HACK this only supports picking from a choice of several different code
8282
// contexts
8383
if (!pick.every(Program.Context.isCode)) {
84+
console.warn("decoratePickContext encountered non-code contexts in pick array. These will be ignored.");
8485
return [];
8586
}
8687

0 commit comments

Comments
 (0)