Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

display disableChecks option in extra flags error message #3964

Merged
merged 2 commits into from
Jan 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ 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 Protractor CLI flag checks.');
}
}

Expand Down