mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 14:07:02 +09:00
Use %w for error formatting
This commit is contained in:
parent
fd50ce8978
commit
dc5a577f23
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue