Skip to content

Commit

Permalink
fix: 判断是否已经处理错误
Browse files Browse the repository at this point in the history
  • Loading branch information
myml committed Aug 26, 2022
1 parent f78e9db commit 0c561a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion error_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func ErrorHandle(logger *zap.Logger, customHandle func(c *gin.Context, err error
zap.Error(err),
)
}
if c.Writer.Status() != 0 {
if c.Writer.Status() != http.StatusOK {
return
}

Expand Down

0 comments on commit 0c561a9

Please sign in to comment.