小
今天调一个 SDK 调到怀疑人生 😭 报错就一句 request failed 别的什么都不说 最后抓包才发现是我时间戳格式写错了 🙃 一条像样的报错信息真的能省一小时 求做工具的各位行行好 🙏
今天调一个 SDK 调到怀疑人生 😭 报错就一句 request failed 别的什么都不说 最后抓包才发现是我时间戳格式写错了 🙃 一条像样的报错信息真的能省一小时 求做工具的各位行行好 🙏
request failed is not an error message its a shrug
The pattern I like is that every error carries the field that failed and the value it actually received. It costs the library author about ten minutes and saves every user an afternoon. It is probably the highest leverage thing in a client library and it is almost always the last thing anyone gets round to.
对对对 就要这种 😂 我现在选库先翻 issue 区看别人的报错长什么样 比看文档快多了 ✨