func (s *ReportStatus) Error() error {
	if s.UnpackStatus != ok {
		return fmt.Errorf("unpack error: %s", s.UnpackStatus)
	}
	for _, s := range s.CommandStatuses {
		if err := s.Error(); err != nil {
			return err
		}
	}
	return nil
}
Error returns the first error if any.
package packp
import (
	"bytes"
	"fmt"
	"io"
	"strings"
	"gopkg.in/src-d/go-git.v4/plumbing"
	"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
)
const (
	ok = "ok"
)
type ReportStatus struct {
	UnpackStatus    string
	CommandStatuses []*CommandStatus
}
func NewReportStatus() *ReportStatus {
	return &ReportStatus{}
}