error text formatting