Skip to content

Conversation

@chen-mou
Copy link
Contributor

如果调用internal 下的json.Marshal时 参数如果是gerror.Error 并且 字段中带有符号" 会导致序列化失败 原因是原gerror.Error 的MarshalJson方法只对字符串做了简单的处理 如果err.Error 返回的字符串中有符号" 这个符号会在序列化的时候被认为是字符串的终止导致序列化失败
image

@hailaz hailaz changed the title fix:修复了如果gerror.Error 的text字段如果带有符号" 导致的序列化失败的问题 fix(gerror): Fixed serialization failure issue when gerror.Error text field contains quote symbols Sep 26, 2025
@hailaz hailaz merged commit 22d873f into gogf:master Sep 26, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants