1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

Use %w for error formatting

This commit is contained in:
kirillston 2024-04-02 11:20:54 +02:00
parent fd50ce8978
commit dc5a577f23
No known key found for this signature in database
GPG key ID: 88218A7F1109754B

View file

@ -43,7 +43,7 @@ func Unwrap(e error) error {
} }
err, ok := errsMap[code] err, ok := errsMap[code]
if !ok { if !ok {
return drpcerr.WithCode(fmt.Errorf("unexpected error: %v; code: %d", e, code), code) return drpcerr.WithCode(fmt.Errorf("unexpected error: %w; code: %d", e, code), code)
} }
return err return err
} }