fix(compiler-cli): add missing period to error message (#47744)

With this change we add a missing period to the error message.

PR Close #47744
This commit is contained in:
Alan Agius 2022-10-12 10:15:46 +00:00 committed by Jessica Janiuk
parent 9483343ebf
commit 38078e7adb

View file

@ -69,7 +69,7 @@ export function validateAndFlattenComponentImports(imports: ResolvedValue, expr:
if (!Array.isArray(imports)) {
const error = createValueHasWrongTypeError(
expr, imports,
`'imports' must be an array of components, directives, pipes, or NgModules`)
`'imports' must be an array of components, directives, pipes, or NgModules.`)
.toDiagnostic();
return {
imports: [],
@ -91,7 +91,7 @@ export function validateAndFlattenComponentImports(imports: ResolvedValue, expr:
diagnostics.push(
createValueHasWrongTypeError(
ref.getOriginForDiagnostics(expr), ref,
`'imports' must be an array of components, directives, pipes, or NgModules`)
`'imports' must be an array of components, directives, pipes, or NgModules.`)
.toDiagnostic());
}
} else if (isLikelyModuleWithProviders(ref)) {
@ -111,7 +111,7 @@ export function validateAndFlattenComponentImports(imports: ResolvedValue, expr:
diagnostics.push(
createValueHasWrongTypeError(
expr, imports,
`'imports' must be an array of components, directives, pipes, or NgModules`)
`'imports' must be an array of components, directives, pipes, or NgModules.`)
.toDiagnostic());
}
}