Skip to content

Commit 18473c1

Browse files
authored
fix(cas): not found error (#312)
Signed-off-by: Miguel Martinez Trivino <[email protected]>
1 parent 111b986 commit 18473c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/artifact-cas/internal/service/download.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (s *DownloadService) ServeHTTP(w http.ResponseWriter, r *http.Request) {
7878

7979
info, err := b.Describe(ctx, hash.Hex)
8080
if err != nil && backend.IsNotFound(err) {
81-
http.Error(w, err.Error(), http.StatusNotFound)
81+
http.Error(w, "artifact not found", http.StatusNotFound)
8282
return
8383
} else if err != nil {
8484
http.Error(w, sl.LogAndMaskErr(err, s.log).Error(), http.StatusInternalServerError)

0 commit comments

Comments
 (0)