Add helper functions to decouple spec of error messages from div classes