return errors as array