Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
bktNULL committed Feb 23, 2023
1 parent 8d5788a commit 907ae30
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func (this *WebAppCtl) CtlIngressNamespaceAdd(ctx *gin.Context) {
if xError != nil {
cheerlib.LogError(xError.Error())
this.ReturnIntenalError(ctx)
return
}

this.ReturnAppSuccess(ctx, "app.server.msg.common.op.succ")
Expand Down Expand Up @@ -191,6 +192,7 @@ func (this *WebAppCtl) CtlIngressNamespaceSave(ctx *gin.Context) {
if xError != nil {
cheerlib.LogError(xError.Error())
this.ReturnIntenalError(ctx)
return
}

this.ReturnAppSuccess(ctx, "app.server.msg.common.op.succ")
Expand Down Expand Up @@ -277,8 +279,11 @@ func (this *WebAppCtl) CtlIngressNamespacePublish(ctx *gin.Context) {
xError = this.AppContext.AppDbSvc.PublishNamespaceConfig(ctx.Request.Context(), xRequest.DataId)

if xError != nil {
cheerlib.LogError(xError.Error())
this.ReturnIntenalError(ctx)

cheerapp.LogErrorWithContext(ctx.Request.Context(),xError.Error())
this.ReturnAppError(ctx,xError.Error())

return
}

this.ReturnAppSuccess(ctx, "app.server.msg.common.op.succ")
Expand Down

0 comments on commit 907ae30

Please sign in to comment.