Skip to content

Commit fae7a12

Browse files
Assert condition to track root cause of issue.
1 parent 2816fde commit fae7a12

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/compiler/commandLineParser.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,12 @@ namespace ts {
326326
if (hasProperty(map, key)) {
327327
options[opt.name] = map[key];
328328
}
329-
else {
329+
else if (opt.error) {
330330
errors.push(createCompilerDiagnostic(opt.error));
331331
}
332+
else {
333+
Debug.fail(`Command line option for '${opt.name}' doesn't account for invalid options.`);
334+
}
332335
}
333336
}
334337
else {

0 commit comments

Comments
 (0)