summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-08 20:06:12 -0500
committerUnknwon <u@gogs.io>2015-12-08 20:06:12 -0500
commit120cd4e4716d11f79a7e8c41c066383e579d480a (patch)
treeb25ae1b31ecf5437250c388d55ee940e294a4187 /routers/api/v1/repo/repo.go
parent1cbd4c01fbfd4e15e36a722c9e2cc19366be3df8 (diff)
downloadgitea-120cd4e4716d11f79a7e8c41c066383e579d480a.tar.gz
gitea-120cd4e4716d11f79a7e8c41c066383e579d480a.zip
#1984 Better mirror repo management
Diffstat (limited to 'routers/api/v1/repo/repo.go')
-rw-r--r--routers/api/v1/repo/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go
index 864cb4dd17..c0d897b5d4 100644
--- a/routers/api/v1/repo/repo.go
+++ b/routers/api/v1/repo/repo.go
@@ -234,7 +234,7 @@ func Migrate(ctx *middleware.Context, form auth.MigrateRepoForm) {
log.Error(4, "DeleteRepository: %v", errDelete)
}
}
- ctx.APIError(500, "MigrateRepository", err)
+ ctx.APIError(500, "MigrateRepository", models.HandleCloneUserCredentials(err.Error(), true))
return
}