mirror of
https://github.com/vx3r/wg-gen-web.git
synced 2025-09-11 12:24:27 +00:00
improve formatting and layout
This commit is contained in:
@ -23,7 +23,7 @@ func readInterfaceStatus(c *gin.Context) {
|
||||
log.WithFields(log.Fields{
|
||||
"err": err,
|
||||
}).Error("failed to read interface status")
|
||||
c.AbortWithStatus(http.StatusInternalServerError)
|
||||
c.AbortWithStatusJSON(http.StatusInternalServerError, err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
@ -36,7 +36,7 @@ func readClientStatus(c *gin.Context) {
|
||||
log.WithFields(log.Fields{
|
||||
"err": err,
|
||||
}).Error("failed to read client status")
|
||||
c.AbortWithStatus(http.StatusInternalServerError)
|
||||
c.AbortWithStatusJSON(http.StatusInternalServerError, err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user