From 58f86afe0443ec8077eef71f9fae480a35d42398 Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Fri, 12 Apr 2024 16:49:25 +1000 Subject: [PATCH] update string interpolation --- backend/controller/controller.go | 2 +- backend/controller/cronjobs/cronjobs.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/controller/controller.go b/backend/controller/controller.go index 57be46cf39..3a7b91fe57 100644 --- a/backend/controller/controller.go +++ b/backend/controller/controller.go @@ -752,7 +752,7 @@ func (s *Service) CreateDeployment(ctx context.Context, req *connect.Request[ftl cronJobs, err := s.cronJobs.NewCronJobsForModule(ctx, req.Msg.Schema) if err != nil { logger.Errorf(err, "Could not generate cron jobs for new deployment") - return nil, fmt.Errorf("%s: %w", "could not generate cron jobs for new deployment", err) + return nil, fmt.Errorf("could not generate cron jobs for new deployment: %w", err) } dkey, err := s.dal.CreateDeployment(ctx, ms.Runtime.Language, module, artefacts, ingressRoutes, cronJobs) diff --git a/backend/controller/cronjobs/cronjobs.go b/backend/controller/cronjobs/cronjobs.go index b9d60df01a..cd9e6407ee 100644 --- a/backend/controller/cronjobs/cronjobs.go +++ b/backend/controller/cronjobs/cronjobs.go @@ -167,7 +167,7 @@ func (s *Service) resetJobsWithNewDeploymentKey(ctx context.Context, deploymentK jobs, err := s.dal.GetCronJobs(ctx) if err != nil { logger.Errorf(err, "failed to get cron jobs") - return fmt.Errorf("%s: %w", "failed to get cron jobs", err) + return fmt.Errorf("failed to get cron jobs: %w", err) } s.jobChanges.Publish(jobChange{ changeType: resetJobs,