Skip to content

Commit dfe6c13

Browse files
DanielRufpetk
andauthored
Fix typo (#15780)
* Fix typo * Implement conditional message * Use suggested code with ternary * Wrap ternary Co-authored-by: Peter Kokot <peterkokot@gmail.com> --------- Co-authored-by: Peter Kokot <peterkokot@gmail.com>
1 parent ac0931d commit dfe6c13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

win32/build/confutils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2096,7 +2096,9 @@ function generate_files()
20962096

20972097
if (INVALID_CONFIG_ARGS.length) {
20982098
STDOUT.WriteLine('WARNING');
2099-
STDOUT.WriteLine('The following arguments is invalid, and therefore ignored:');
2099+
STDOUT.WriteLine('The following ' +
2100+
(INVALID_CONFIG_ARGS.length > 1 ? 'arguments are' : 'argument is') +
2101+
' invalid, and therefore ignored:');
21002102

21012103
for (var i = 0; i < INVALID_CONFIG_ARGS.length; ++i) {
21022104
STDOUT.WriteLine(' ' + INVALID_CONFIG_ARGS[i]);

0 commit comments

Comments
 (0)