Skip to content

Commit f0bc0fe

Browse files
committed
fix: -t/--team option should fail fast if the given team is not recognized
1 parent 86ef6f4 commit f0bc0fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: plugins/plugin-codeflare/src/controller/catchall.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ function assertionsFn({ team }: Pick<MadWizardOptions, "team">): Record<string,
4646
case "com.ibm.research.nasa":
4747
case "cftest":
4848
return comIBMResearchNASA
49-
// intentional fallthrough
49+
default:
50+
throw new Error("Unknown team:" + team)
5051
}
5152
}
5253

0 commit comments

Comments
 (0)