diff --git a/sdk/client/commander.go b/sdk/client/commander.go index ed7862969b..985c288efb 100644 --- a/sdk/client/commander.go +++ b/sdk/client/commander.go @@ -317,7 +317,7 @@ func (c *commander) Upload(ctx context.Context, cfg *proto.NginxConfig, messageI } if status.Status != proto.UploadStatus_OK { - return fmt.Error(status.Reason) + return fmt.Errorf("%s", status.Reason) } return nil diff --git a/test/integration/vendor/github.com/nginx/agent/sdk/v2/client/commander.go b/test/integration/vendor/github.com/nginx/agent/sdk/v2/client/commander.go index ed7862969b..985c288efb 100644 --- a/test/integration/vendor/github.com/nginx/agent/sdk/v2/client/commander.go +++ b/test/integration/vendor/github.com/nginx/agent/sdk/v2/client/commander.go @@ -317,7 +317,7 @@ func (c *commander) Upload(ctx context.Context, cfg *proto.NginxConfig, messageI } if status.Status != proto.UploadStatus_OK { - return fmt.Error(status.Reason) + return fmt.Errorf("%s", status.Reason) } return nil diff --git a/test/performance/vendor/github.com/nginx/agent/sdk/v2/client/commander.go b/test/performance/vendor/github.com/nginx/agent/sdk/v2/client/commander.go index ed7862969b..985c288efb 100644 --- a/test/performance/vendor/github.com/nginx/agent/sdk/v2/client/commander.go +++ b/test/performance/vendor/github.com/nginx/agent/sdk/v2/client/commander.go @@ -317,7 +317,7 @@ func (c *commander) Upload(ctx context.Context, cfg *proto.NginxConfig, messageI } if status.Status != proto.UploadStatus_OK { - return fmt.Error(status.Reason) + return fmt.Errorf("%s", status.Reason) } return nil diff --git a/vendor/github.com/nginx/agent/sdk/v2/client/commander.go b/vendor/github.com/nginx/agent/sdk/v2/client/commander.go index ed7862969b..985c288efb 100644 --- a/vendor/github.com/nginx/agent/sdk/v2/client/commander.go +++ b/vendor/github.com/nginx/agent/sdk/v2/client/commander.go @@ -317,7 +317,7 @@ func (c *commander) Upload(ctx context.Context, cfg *proto.NginxConfig, messageI } if status.Status != proto.UploadStatus_OK { - return fmt.Error(status.Reason) + return fmt.Errorf("%s", status.Reason) } return nil