aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/git/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/code.gitea.io/git/error.go')
-rw-r--r--vendor/code.gitea.io/git/error.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/code.gitea.io/git/error.go b/vendor/code.gitea.io/git/error.go
index 4fd2a5b8fd..1aae5a37a2 100644
--- a/vendor/code.gitea.io/git/error.go
+++ b/vendor/code.gitea.io/git/error.go
@@ -40,6 +40,16 @@ func (err ErrNotExist) Error() string {
return fmt.Sprintf("object does not exist [id: %s, rel_path: %s]", err.ID, err.RelPath)
}
+// ErrBadLink entry.FollowLink error
+type ErrBadLink struct {
+ Name string
+ Message string
+}
+
+func (err ErrBadLink) Error() string {
+ return fmt.Sprintf("%s: %s", err.Name, err.Message)
+}
+
// ErrUnsupportedVersion error when required git version not matched
type ErrUnsupportedVersion struct {
Required string