Remove Error::Generic
variants in favor of more specific errors
#1083
Labels
enhancement
New feature or request
Generic
should not be used, instead we should prefer creating a new enum variant in almost all cases. Using "Generic" errors may lead to depending on strings in an a variant leading to difficult to find bugs.If a string changes in one part of a codebase, it could inadvertently lead to very bad things happening if the author is not careful (silenced errors no longer becoming silenced, retryable errors no longer being retried, etc.).
Enum variants will give a compile time error and force the author to fix.
re: this comment:
libxmtp/xmtp_mls/src/storage/errors.rs
Line 60 in cd0fc5c
The text was updated successfully, but these errors were encountered: