summaryrefslogtreecommitdiffstats
path: root/models/packages/package_blob.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/packages/package_blob.go')
-rw-r--r--models/packages/package_blob.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/packages/package_blob.go b/models/packages/package_blob.go
index 36ad745312..3b4a1ecf18 100644
--- a/models/packages/package_blob.go
+++ b/models/packages/package_blob.go
@@ -5,15 +5,15 @@ package packages
import (
"context"
- "errors"
"time"
"code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/modules/timeutil"
+ "code.gitea.io/gitea/modules/util"
)
// ErrPackageBlobNotExist indicates a package blob not exist error
-var ErrPackageBlobNotExist = errors.New("Package blob does not exist")
+var ErrPackageBlobNotExist = util.NewNotExistErrorf("package blob does not exist")
func init() {
db.RegisterModel(new(PackageBlob))