Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 4e5e09d

Browse files
committed
Fix The parameter null is not valid for this command. error when create command is executed.
Current behaviour: When `tns create wqeer sadadfad` command is executed, `The parameter null is not valid for this command.` error is thrown. New behaviour: When `tns create wqeer sadadfad` command is executed, `The parameter sadadfad is not valid for this command.` error is thrown. Fixes NativeScript/nativescript-cli#2727
1 parent 01cb744 commit 4e5e09d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/commands-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export class CommandsService implements ICommandsService {
253253
// Remove the matched parameter from unverifiedAllowedParams collection, so it will not be used to verify another argument.
254254
unverifiedAllowedParams.splice(index, 1);
255255
} else {
256-
this.$errors.fail("The parameter %s is not valid for this command.", parameter);
256+
this.$errors.fail(`The parameter ${argument} is not valid for this command.`);
257257
}
258258
}
259259
}

0 commit comments

Comments
 (0)