Error messages: delayed rendering with templating

maybe just one call?
```php
if ( substr( $rule, -1 ) != ']' ) 
```