SiaFoundation/core

Export useful errors for explicit error handling

开放

#262 创建于 2024年12月19日

 (0 条评论) (1 个反应) (1 位负责人)Go (9 个派生)auto 404
good first issue

仓库指标

星标
 (58 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

We have seen an increasing number of checks in renterd and hostd checking for substrings like "has already been resolved", "not found in the accumulator" etc. either for testing or figuring out whether it makes sense to log an error.

We should expose the more common/useful ones so that we can perform errors.Is checks on them instead.

贡献者指南