Fixed error messages

This commit is contained in:
kolaente 2017-12-29 15:47:05 +01:00 committed by Konrad
parent f48d6cdecd
commit 8931ced50e
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -26,7 +26,7 @@ func RemoveDependency(ctx *context.Context) {
// Check if the Repo is allowed to have dependencies // Check if the Repo is allowed to have dependencies
if !ctx.Repo.CanCreateIssueDependencies(issue, ctx.User) { if !ctx.Repo.CanCreateIssueDependencies(issue, ctx.User) {
ctx.Handle(404, "MustEnableIssueDependencies", nil) ctx.Handle(404, "NotAllowedToCreateIssueDependencies", nil)
return return
} }
@ -53,7 +53,7 @@ func RemoveDependency(ctx *context.Context) {
} }
if err = models.RemoveIssueDependency(ctx.User, issue, dep, depType); err != nil { if err = models.RemoveIssueDependency(ctx.User, issue, dep, depType); err != nil {
ctx.Handle(http.StatusInternalServerError, "CreateOrUpdateIssueDependency", err) ctx.Handle(http.StatusInternalServerError, "RemoveIssueDependency", err)
return return
} }