Skip to content

Commit 6007072

Browse files
author
Carlo Field
committed
add more debug information on failed requests
1 parent 5586c64 commit 6007072

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/server/profile.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ func updateProfile(c *gin.Context) {
4646
}
4747
err := c.BindJSON(&d)
4848
if err != nil {
49-
c.AbortWithStatus(500)
49+
_ = c.AbortWithError(500, err)
5050
return
5151
}
5252
backup(pwd, "profile")
5353
f, err := os.Create(pwd + "/profile.sav")
5454
if err != nil {
55-
c.AbortWithStatus(500)
55+
_ = c.AbortWithError(500, err)
5656
return
5757
}
5858
defer f.Close()

0 commit comments

Comments
 (0)