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
@@ -43,7 +43,7 @@ func version(ctx *cli.Context) error {
|
||||
lndVersion, err := client.GetVersion(ctxc, &verrpc.VersionRequest{})
|
||||
if err != nil {
|
||||
printRespJSON(versions)
|
||||
return fmt.Errorf("unable fetch version from lnd: %v", err)
|
||||
return fmt.Errorf("unable fetch version from lnd: %w", err)
|
||||
}
|
||||
versions.Lnd = lndVersion
|
||||
|
||||
|
||||
Reference in new issue
Block a user