summaryrefslogtreecommitdiffstats
path: root/routers/repo/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-06 08:54:08 -0400
committerUnknwon <u@gogs.io>2015-09-06 08:54:08 -0400
commitaa67de910af6246a6dc9ad96c56f789e282e8403 (patch)
treec845cd7afe587d341a091507d2f08310a816e509 /routers/repo/repo.go
parent24658fcbdd507bd66cd76b6ca96e1ef5e1c15af5 (diff)
downloadgitea-aa67de910af6246a6dc9ad96c56f789e282e8403.tar.gz
gitea-aa67de910af6246a6dc9ad96c56f789e282e8403.zip
fix #1558
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r--routers/repo/repo.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index 329bc93311..b9cc98a2dc 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -198,7 +198,8 @@ func MigratePost(ctx *middleware.Context, form auth.MigrateRepoForm) {
}
if strings.Contains(err.Error(), "Authentication failed") ||
- strings.Contains(err.Error(), " not found") {
+ strings.Contains(err.Error(), " not found") ||
+ strings.Contains(err.Error(), "could not read Username") {
ctx.Data["Err_Auth"] = true
ctx.RenderWithErr(ctx.Tr("form.auth_failed", strings.Replace(err.Error(), ":"+form.AuthPassword+"@", ":<password>@", 1)), MIGRATE, &form)
return