mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
fix another type: succes -> success
This commit is contained in:
parent
2625e16fbe
commit
8255382dd6
1 changed files with 3 additions and 2 deletions
|
@ -23,9 +23,10 @@ package helper
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/jinzhu/gorm"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func DBError(c *gin.Context, err error) bool {
|
||||
|
@ -70,7 +71,7 @@ func UnauthorizedError(c *gin.Context, err string) {
|
|||
|
||||
func UnauthorizedAbort(c *gin.Context, err string) {
|
||||
c.AbortWithStatusJSON(http.StatusUnauthorized, gin.H{
|
||||
"succes": false,
|
||||
"success": false,
|
||||
"message": fmt.Sprintf("%v", err),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue