diff --git a/internal/helper/command.go b/internal/helper/command.go index 61d672a9166a7436f161e0b2fc20e340d09fd8be..812e52c48e22d21e66d989cadcd2ac844bfc1a4e 100644 --- a/internal/helper/command.go +++ b/internal/helper/command.go @@ -64,7 +64,7 @@ func NewCommand(cmd *exec.Cmd, stdin io.Reader, stdout, stderr io.Writer, env .. } if err := cmd.Start(); err != nil { - return nil, fmt.Errorf("GitCommand: start %v: %v", cmd.Args, err) + return nil, fmt.Errorf("start %v: %v", cmd.Args, err) } return command, nil diff --git a/internal/service/commit/isancestor.go b/internal/service/commit/isancestor.go index ebac68d910c4fb670a56c24de9499a5c91b11180..7a84528b2d9292ceb195015e1838b5fda881cdda 100644 --- a/internal/service/commit/isancestor.go +++ b/internal/service/commit/isancestor.go @@ -19,10 +19,10 @@ func (s *server) CommitIsAncestor(ctx context.Context, in *pb.CommitIsAncestorRe return nil, err } if in.AncestorId == "" { - return nil, grpc.Errorf(codes.InvalidArgument, "Bad Request (empty ancestor sha)") + return nil, grpc.Errorf(codes.InvalidArgument, "bad request (empty ancestor sha)") } if in.ChildId == "" { - return nil, grpc.Errorf(codes.InvalidArgument, "Bad Request (empty child sha)") + return nil, grpc.Errorf(codes.InvalidArgument, "bad request (empty child sha)") } ret, err := commitIsAncestorName(repoPath, in.AncestorId, in.ChildId)