formatting error/alert messages