SiaFoundation/core

Export useful errors for explicit error handling

Offen

#262 geöffnet am 19.12.2024

 (0 Kommentare) (1 Reaktion) (1 zugewiesene Person)Go (9 Forks)auto 404
good first issue

Repository-Metriken

Stars
 (58 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide