Commit 8ff12be
committed
fix: expose Err() method to check for configuration errors
New() silently stores configuration errors (e.g., missing hash key,
invalid block key) in a private field. Users have no way to detect
these errors until Encode/Decode fails.
Add a public Err() method that returns any stored configuration
error, allowing callers to check for misconfiguration immediately
after calling New().
Fixes #891 parent eae3c18 commit 8ff12be
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
191 | 198 | | |
192 | 199 | | |
193 | 200 | | |
| |||
0 commit comments