Skip to content

Commit

Permalink
fix(compiler-cli): add missing period to error message (#47744)
Browse files Browse the repository at this point in the history
With this change we add a missing period to the error message.

PR Close #47744
  • Loading branch information
alan-agius4 authored and thePunderWoman committed Oct 12, 2022
1 parent 9483343 commit 38078e7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
Expand All @@ -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)) {
Expand All @@ -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());
}
}
Expand Down

0 comments on commit 38078e7

Please sign in to comment.