diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 4337d1fb79..fdcac96885 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -14573,7 +14573,7 @@ namespace ts { if (node.expression) { const type = checkExpression(node.expression, checkMode); if (node.dotDotDotToken && type !== anyType && !isArrayType(type)) { - error(node, Diagnostics.JSX_spread_child_must_be_an_array_type, node.toString(), typeToString(type)); + error(node, Diagnostics.JSX_spread_child_must_be_an_array_type); } return type; } diff --git a/src/compiler/program.ts b/src/compiler/program.ts old mode 100644 new mode 100755 index 7934b26f38..76a0b618a3 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1587,7 +1587,7 @@ namespace ts { fail(Diagnostics.File_0_not_found, fileName); } else if (refFile && host.getCanonicalFileName(fileName) === host.getCanonicalFileName(refFile.fileName)) { - fail(Diagnostics.A_file_cannot_have_a_reference_to_itself, fileName); + fail(Diagnostics.A_file_cannot_have_a_reference_to_itself); } } return sourceFile;