Skip to content

Commit

Permalink
add code for internal error
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed May 13, 2024
1 parent 3e7dd47 commit f303f1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/service/service_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package service

import (
"context"
"net/http"
"os"
"os/exec"
"path"
Expand Down Expand Up @@ -177,6 +178,7 @@ func (s *Service) processEnded(p *Process, err error) {
p.info.Status = livekit.EgressStatus_EGRESS_FAILED
if p.info.Error == "" {
p.info.Error = "internal error"
p.info.ErrorCode = int32(http.StatusInternalServerError)
}
_, _ = s.ioClient.UpdateEgress(p.ctx, p.info)
if p.info.Error == "internal error" {
Expand Down

0 comments on commit f303f1a

Please sign in to comment.