support sending error messages in array format