Skip to content

Commit

Permalink
Fix create job error message (#936)
Browse files Browse the repository at this point in the history
  • Loading branch information
alishakawaguchi committed Dec 20, 2023
1 parent 9e00707 commit a6e972e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/services/mgmt/v1alpha1/job-service/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,9 @@ func (s *Service) CreateJob(
logger.Info("verifying temporal workspace")
hasNs, err := s.temporalWfManager.DoesAccountHaveTemporalWorkspace(ctx, req.Msg.AccountId, logger)
if err != nil {
logger.Error("unable to verify account temporal workspace. error: %w", err)
return nil, err
wrappedErr := fmt.Errorf("unable to verify account's temporal workspace. error: %w", err)
logger.Error(wrappedErr.Error())
return nil, wrappedErr
}
if !hasNs {
logger.Error("temporal namespace not configured")
Expand Down

0 comments on commit a6e972e

Please sign in to comment.