mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Assert condition to track root cause of issue.
This commit is contained in:
parent
2816fdefd0
commit
fae7a129eb
@ -326,9 +326,12 @@ namespace ts {
|
||||
if (hasProperty(map, key)) {
|
||||
options[opt.name] = map[key];
|
||||
}
|
||||
else {
|
||||
else if (opt.error) {
|
||||
errors.push(createCompilerDiagnostic(opt.error));
|
||||
}
|
||||
else {
|
||||
Debug.fail(`Command line option for '${opt.name}' doesn't account for invalid options.`);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user