aboutsummaryrefslogtreecommitdiffstats
path: root/models/admin/task.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/admin/task.go')
-rw-r--r--models/admin/task.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/admin/task.go b/models/admin/task.go
index 07eb61decc..4fa0f10394 100644
--- a/models/admin/task.go
+++ b/models/admin/task.go
@@ -167,6 +167,10 @@ func (err ErrTaskDoesNotExist) Error() string {
err.ID, err.RepoID, err.Type)
}
+func (err ErrTaskDoesNotExist) Unwrap() error {
+ return util.ErrNotExist
+}
+
// GetMigratingTask returns the migrating task by repo's id
func GetMigratingTask(repoID int64) (*Task, error) {
task := Task{