Skip to content

Commit ffe82c6

Browse files
committed
Fix error message
1 parent 74a6343 commit ffe82c6

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/compiler/diagnosticMessages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3241,7 +3241,7 @@
32413241
"category": "Error",
32423242
"code": 5061
32433243
},
3244-
"Substitution '{0}' in pattern '{1}' in can have at most one '*' character.": {
3244+
"Substitution '{0}' in pattern '{1}' can have at most one '*' character.": {
32453245
"category": "Error",
32463246
"code": 5062
32473247
},

src/compiler/program.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2980,7 +2980,7 @@ namespace ts {
29802980
const typeOfSubst = typeof subst;
29812981
if (typeOfSubst === "string") {
29822982
if (!hasZeroOrOneAsteriskCharacter(subst)) {
2983-
createDiagnosticForOptionPathKeyValue(key, i, Diagnostics.Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character, subst, key);
2983+
createDiagnosticForOptionPathKeyValue(key, i, Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character, subst, key);
29842984
}
29852985
}
29862986
else {

tests/baselines/reference/pathMappingBasedModuleResolution2_classic.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/compiler/root/tsconfig.json(8,13): error TS5061: Pattern '*1*' can have at most one '*' character.
2-
tests/cases/compiler/root/tsconfig.json(8,22): error TS5062: Substitution '*2*' in pattern '*1*' in can have at most one '*' character.
2+
tests/cases/compiler/root/tsconfig.json(8,22): error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character.
33

44

55
==== tests/cases/compiler/root/tsconfig.json (2 errors) ====
@@ -14,7 +14,7 @@ tests/cases/compiler/root/tsconfig.json(8,22): error TS5062: Substitution '*2*'
1414
~~~~~
1515
!!! error TS5061: Pattern '*1*' can have at most one '*' character.
1616
~~~~~
17-
!!! error TS5062: Substitution '*2*' in pattern '*1*' in can have at most one '*' character.
17+
!!! error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character.
1818
}
1919
}
2020
}

tests/baselines/reference/pathMappingBasedModuleResolution2_node.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/compiler/root/tsconfig.json(8,13): error TS5061: Pattern '*1*' can have at most one '*' character.
2-
tests/cases/compiler/root/tsconfig.json(8,22): error TS5062: Substitution '*2*' in pattern '*1*' in can have at most one '*' character.
2+
tests/cases/compiler/root/tsconfig.json(8,22): error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character.
33

44

55
==== tests/cases/compiler/root/tsconfig.json (2 errors) ====
@@ -14,7 +14,7 @@ tests/cases/compiler/root/tsconfig.json(8,22): error TS5062: Substitution '*2*'
1414
~~~~~
1515
!!! error TS5061: Pattern '*1*' can have at most one '*' character.
1616
~~~~~
17-
!!! error TS5062: Substitution '*2*' in pattern '*1*' in can have at most one '*' character.
17+
!!! error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character.
1818
}
1919
}
2020
}

tests/baselines/reference/pathsValidation4.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
tests/cases/compiler/tsconfig.json(6,11): error TS5061: Pattern '@interface/**/*' can have at most one '*' character.
22
tests/cases/compiler/tsconfig.json(7,11): error TS5061: Pattern '@service/**/*' can have at most one '*' character.
3-
tests/cases/compiler/tsconfig.json(7,29): error TS5062: Substitution './src/service/**/*' in pattern '@service/**/*' in can have at most one '*' character.
3+
tests/cases/compiler/tsconfig.json(7,29): error TS5062: Substitution './src/service/**/*' in pattern '@service/**/*' can have at most one '*' character.
44

55

66
==== tests/cases/compiler/tsconfig.json (3 errors) ====
@@ -16,7 +16,7 @@ tests/cases/compiler/tsconfig.json(7,29): error TS5062: Substitution './src/serv
1616
~~~~~~~~~~~~~~~
1717
!!! error TS5061: Pattern '@service/**/*' can have at most one '*' character.
1818
~~~~~~~~~~~~~~~~~~~~
19-
!!! error TS5062: Substitution './src/service/**/*' in pattern '@service/**/*' in can have at most one '*' character.
19+
!!! error TS5062: Substitution './src/service/**/*' in pattern '@service/**/*' can have at most one '*' character.
2020
"@controller/*": ["controller/*"],
2121
}
2222
}

0 commit comments

Comments
 (0)