improving enum formats error messages.