Skip to content

Commit

Permalink
error info optimized for user-info
Browse files Browse the repository at this point in the history
  • Loading branch information
rosbit committed May 7, 2020
1 parent 39d714a commit beca11f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func snsAPI(w http.ResponseWriter, r *http.Request) {
"msg": "OK",
"openId": openId,
"userInfo": userInfo,
"error": err.Error(),
"error": func()string{if err == nil {return ""}; return err.Error()}(),
})
}

Expand Down

0 comments on commit beca11f

Please sign in to comment.