1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

client: Fixed non-constant format string in call to fmt.Errorf

Signed-off-by: Robby Callicotte <rcallicotte@fedoraproject.org>
This commit is contained in:
Robby Callicotte
2025-07-06 18:38:16 -05:00
committed by Stéphane Graber
parent c1175bec40
commit 81803ecdb9

View File

@@ -474,7 +474,7 @@ func (r *ProtocolIncus) rawWebsocket(url string) (*websocket.Conn, error) {
}
if apiResp != nil && apiResp.Error != "" {
err = errors.Join(err, fmt.Errorf(apiResp.Error))
err = errors.Join(err, errors.New(apiResp.Error))
}
}