shithub: furgit

Download patch

ref: 65600ea051adc75d09e9763fb6e11e79602f76b6
parent: 8aa544539d452f310b6a88348f2a50bda017e317
author: Runxi Yu <me@runxiyu.org>
date: Sat Nov 22 03:00:00 EST 2025

obj: Return ErrNotFound, not ErrInvalidObject, when not found in packs

--- a/obj.go
+++ b/obj.go
@@ -106,7 +106,7 @@
 	}
 	ty, body, err = repo.packRead(id)
 	if errors.Is(err, ErrNotFound) {
-		return nil, ErrInvalidObject
+		return nil, ErrNotFound
 	}
 	if err != nil {
 		return nil, err
--