1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Fix handling of migration errors (#12928)

* Fix handling of migration errors

The migration type selection screen PR did not correctly handle errors
and any user input error on the migration page would simply redirect
back to the selection page. This meant that the error would simply be
lost and the user would be none the wiser as to what happened.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* make gen-swagger

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
zeripath
2020-09-23 21:25:46 +01:00
committed by GitHub
parent f215e015df
commit 3f522cdaad
3 changed files with 22 additions and 15 deletions

View File

@@ -13231,6 +13231,12 @@
},
"x-go-package": "code.gitea.io/gitea/modules/structs"
},
"GitServiceType": {
"description": "GitServiceType represents a git service",
"type": "integer",
"format": "int64",
"x-go-package": "code.gitea.io/gitea/modules/structs"
},
"GitTreeResponse": {
"description": "GitTreeResponse returns a git tree",
"type": "object",
@@ -13658,9 +13664,7 @@
"x-go-name": "RepoName"
},
"service": {
"type": "integer",
"format": "int64",
"x-go-name": "Service"
"$ref": "#/definitions/GitServiceType"
},
"uid": {
"type": "integer",