mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-12 03:20:56 -06:00
no-throw-literal
This commit is contained in:
parent
bea1bcb466
commit
12e195c24e
@ -103,7 +103,7 @@
|
||||
"no-shadow": "off",
|
||||
"no-sparse-arrays": "error",
|
||||
"no-template-curly-in-string": "off",
|
||||
"no-throw-literal": "off",
|
||||
"no-throw-literal": "error",
|
||||
"no-trailing-spaces": "off",
|
||||
"no-undef-init": "error",
|
||||
"no-unsafe-finally": "error",
|
||||
|
||||
@ -18,7 +18,7 @@ function main() {
|
||||
const [, progName, tscRoot, definitelyTypedRoot] = process.argv;
|
||||
if (process.argv.length !== 4) {
|
||||
if (process.argv.length < 2) {
|
||||
throw "Expected at least 2 argv elements.";
|
||||
throw new Error("Expected at least 2 argv elements.");
|
||||
}
|
||||
console.log("Usage:");
|
||||
console.log(` node ${path.relative(__dirname, progName)} [TypeScript Repo Root] [DefinitelyTyped Repo Root]`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user