multi: fix fmt.Errorf error wrapping
Refactor fmt.Errorf usage to correctly wrap errors instead of using non-wrapping format verbs.
This commit is contained in:
103 files changed
+426
-390
No files matched your search
@@ -686,7 +686,7 @@ func (f *interceptedForward) FailWithCode(code lnwire.FailCode) error {
|
||||
// of the failure.
|
||||
reason, err := f.packet.obfuscator.EncryptFirstHop(failureMsg)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to encrypt failure reason %v", err)
|
||||
return fmt.Errorf("failed to encrypt failure reason %w", err)
|
||||
}
|
||||
|
||||
return f.resolve(&lnwire.UpdateFailHTLC{
|
||||
|
||||
Reference in new issue
Block a user