This PR consolidates common attribute-related error messages into reusable functions and updates the wording and formatting of relevant error messages.
[macroInline]
closes #1363