From 3bbdb4a9cac103064dd90b464f19c08d4f22c332 Mon Sep 17 00:00:00 2001 From: Victor Elias Date: Thu, 20 Jun 2024 19:40:15 +0100 Subject: [PATCH] transcode: Make sure we propagate not found err upstream Otherwise the backoff retry loop wouldn't stop. This was the only use of clients.GetFile that wasn't wrapping the error properly. --- transcode/transcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcode/transcode.go b/transcode/transcode.go index 975413305..4fbf2f532 100644 --- a/transcode/transcode.go +++ b/transcode/transcode.go @@ -538,7 +538,7 @@ func transcodeSegment( defer cancel() rc, err := clients.GetFile(ctx, transcodeRequest.RequestID, segment.Input.URL.String(), nil) if err != nil { - return fmt.Errorf("failed to download source segment %q: %s", segment.Input, err) + return fmt.Errorf("failed to download source segment %q: %w", segment.Input, err) } defer rc.Close()