From 6351f8e6eacde338397350f895c331982ab35698 Mon Sep 17 00:00:00 2001 From: igniteram Date: Fri, 13 Jan 2017 00:50:24 +0530 Subject: [PATCH 1/2] display disableChecks option in extra flags error message --- lib/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli.ts b/lib/cli.ts index 7a0328867..b48b38a26 100644 --- a/lib/cli.ts +++ b/lib/cli.ts @@ -181,7 +181,7 @@ if (!argv.disableChecks) { }); if (unknownKeys.length > 0) { - throw new Error('Found extra flags: ' + unknownKeys.join(', ')); + throw new Error('Found extra flags: ' + unknownKeys.join(', ') + ', please use --disableChecks flag to disable the custom flag check!'); } } From 445e590464501fab1f6d3236c7564dfe2e8645db Mon Sep 17 00:00:00 2001 From: igniteram Date: Fri, 13 Jan 2017 01:31:13 +0530 Subject: [PATCH 2/2] modified disableChecks option message --- lib/cli.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cli.ts b/lib/cli.ts index b48b38a26..c0aa1202c 100644 --- a/lib/cli.ts +++ b/lib/cli.ts @@ -181,7 +181,9 @@ if (!argv.disableChecks) { }); if (unknownKeys.length > 0) { - throw new Error('Found extra flags: ' + unknownKeys.join(', ') + ', please use --disableChecks flag to disable the custom flag check!'); + throw new Error( + 'Found extra flags: ' + unknownKeys.join(', ') + + ', please use --disableChecks flag to disable the Protractor CLI flag checks.'); } }