Skip to content

Commit a0859dd

Browse files
NicolappsConvex, Inc.
authored andcommitted
Add missing exhaustiveness check in handleOwnDev (#38324)
GitOrigin-RevId: 82184b3a58879bc0b7618a5b99a10fa7600c65da
1 parent 041ce0a commit a0859dd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/cli/lib/api.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,16 @@ async function handleOwnDev(
440440
deploymentType: "dev",
441441
};
442442
}
443+
default: {
444+
const _exhaustivenessCheck: never = projectSelection;
445+
return ctx.crash({
446+
exitCode: 1,
447+
errorType: "fatal",
448+
// This should be unreachable, so don't bother with a printed message.
449+
printedMessage: null,
450+
errForSentry: `Unexpected project selection: ${(projectSelection as any).kind}`,
451+
});
452+
}
443453
}
444454
}
445455

0 commit comments

Comments
 (0)