Skip to content

Commit 8565fd5

Browse files
committed
fixup
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
1 parent e940066 commit 8565fd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/jsonrpc/handlers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func jsonRpcCreateExec(tunnel *jsonrpc.Tunnel, params interface{}, t jsonrpc.Res
5555
machineExec := params.(*model.MachineExec)
5656
err := setToken(tunnel, machineExec)
5757
if err != nil {
58-
logrus.Errorf(err.Error())
58+
logrus.Errorf("%s", err.Error())
5959
t.SendError(jsonrpc.NewArgsError(err))
6060
return
6161
}
@@ -107,7 +107,7 @@ func jsonRpcListContainersExec(tunnel *jsonrpc.Tunnel, _ interface{}, t jsonrpc.
107107
machineExec := &model.MachineExec{}
108108
err := setToken(tunnel, machineExec)
109109
if err != nil {
110-
logrus.Errorf(err.Error())
110+
logrus.Errorf("%s", err.Error())
111111
t.SendError(jsonrpc.NewArgsError(err))
112112
return
113113
}

0 commit comments

Comments
 (0)