Skip to content

Commit

Permalink
update string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Apr 14, 2024
1 parent 7c1d4c8 commit 58f86af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion backend/controller/cronjobs/cronjobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 58f86af

Please sign in to comment.