SiaFoundation/core

Export useful errors for explicit error handling

Aperta

#262 aperta il 19 dic 2024

 (0 commenti) (1 reazione) (1 assegnatario)Go (9 fork)auto 404
good first issue

Metriche repository

Star
 (58 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor