Skip to content

Commit

Permalink
fix(common): typo in warning for NgOptimizedDirective (angular#56817)
Browse files Browse the repository at this point in the history
The warning message for the `PLACEHOLDER_DIMENSION_LIMIT_EXCEEDED` check has a repetition of `of`.

PR Close angular#56817
  • Loading branch information
cexbrayat authored and pkozlowski-opensource committed Jul 5, 2024
1 parent d7ab5c3 commit 229dd83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ function assertPlaceholderDimensions(dir: NgOptimizedImage, imgElement: HTMLImag
console.warn(
formatRuntimeError(
RuntimeErrorCode.PLACEHOLDER_DIMENSION_LIMIT_EXCEEDED,
`${imgDirectiveDetails(dir.ngSrc)} it uses a placeholder image, but at least one of ` +
`${imgDirectiveDetails(dir.ngSrc)} it uses a placeholder image, but at least one ` +
`of the dimensions attribute (height or width) exceeds the limit of ${PLACEHOLDER_DIMENSION_LIMIT}px. ` +
`To fix this, use a smaller image as a placeholder.`,
),
Expand Down

0 comments on commit 229dd83

Please sign in to comment.