Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <mc.sanaei@gmail.com>2023-02-18 15:37:32 +0300
committerMHSanaei <mc.sanaei@gmail.com>2023-02-18 15:37:32 +0300
commitb412df70f1b2e9f10b75e095a2329f10b48e01b5 (patch)
tree9d69f34fc53ce9662996494718a7f6aabab0b648 /web/controller/util.go
parentfe9844b51b04bb924bb0e5444b493668c9df92a2 (diff)
update pack 2
Diffstat (limited to 'web/controller/util.go')
-rw-r--r--web/controller/util.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/controller/util.go b/web/controller/util.go
index 2bd2fa55..20ae1ea4 100644
--- a/web/controller/util.go
+++ b/web/controller/util.go
@@ -46,12 +46,12 @@ func jsonMsgObj(c *gin.Context, msg string, obj interface{}, err error) {
if err == nil {
m.Success = true
if msg != "" {
- m.Msg = msg + I18n(c , "success")
+ m.Msg = msg + I18n(c, "success")
}
} else {
m.Success = false
- m.Msg = msg + I18n(c , "fail") + ": " + err.Error()
- logger.Warning(msg + I18n(c , "fail") + ": ", err)
+ m.Msg = msg + I18n(c, "fail") + ": " + err.Error()
+ logger.Warning(msg+I18n(c, "fail")+": ", err)
}
c.JSON(http.StatusOK, m)
}