Skip to content

Commit 619397d

Browse files
committed
add a warning log when unable to access LFS pointer
1 parent 56c5c1d commit 619397d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/web/repo/view.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ func getFileReader(ctx gocontext.Context, repoID int64, blob *git.Blob) ([]byte,
235235

236236
meta, err := git_model.GetLFSMetaObjectByOid(ctx, repoID, pointer.Oid)
237237
if err != nil { // fallback to plain file
238+
log.Warn("Unable to access LFS pointer %s in repo %d: %v", pointer.Oid, repoID, err)
238239
return buf, dataRc, &fileInfo{isTextFile, false, blob.Size(), nil, st}, nil
239240
}
240241

0 commit comments

Comments
 (0)