Skip to content

Commit

Permalink
Log on scene cover fetch error
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants committed Feb 22, 2024
1 parent a303446 commit f2bc3d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/manager/running_streams.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ func (s *SceneServer) StreamSceneDirect(scene *models.Scene, w http.ResponseWrit
func (s *SceneServer) ServeScreenshot(scene *models.Scene, w http.ResponseWriter, r *http.Request) {
var cover []byte
readTxnErr := txn.WithReadTxn(r.Context(), s.TxnManager, func(ctx context.Context) error {
cover, _ = s.SceneCoverGetter.GetCover(ctx, scene.ID)
return nil
var err error
cover, err = s.SceneCoverGetter.GetCover(ctx, scene.ID)
return err
})
if errors.Is(readTxnErr, context.Canceled) {
return
Expand Down

0 comments on commit f2bc3d5

Please sign in to comment.