Assert condition to track root cause of issue.

This commit is contained in:
Daniel Rosenwasser 2015-09-10 13:50:12 -07:00
parent 2816fdefd0
commit fae7a129eb

View File

@ -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 {