Added default value of error message if not defined