Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description

When defaultCategory is warning, the info in the terminal is shown correctly

If defaultCategory is set to error, the info for static text attributes is shown incorrectly:

Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/node-k3y3ur?file=angular-node/tsconfig.json
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run ng version)
No response
Anything else?
No response