Create state error message if not provided