Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Fix #1136: Log better error message when generating workflow fails #1143

Merged
merged 1 commit into from
Aug 16, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func (s *scheduler) createTask(sch schedule.Schedule, wfMap *wmap.WorkflowMap, s
if s.state != schedulerStarted {
te.errs = append(te.errs, serror.New(ErrSchedulerNotStarted))
f := buildErrorsLog(te.Errors(), logger)
f.Error("scheduler not started")
f.Error(ErrSchedulerNotStarted.Error())
return nil, te
}

Expand All @@ -314,7 +314,7 @@ func (s *scheduler) createTask(sch schedule.Schedule, wfMap *wmap.WorkflowMap, s
if err != nil {
te.errs = append(te.errs, serror.New(err))
f := buildErrorsLog(te.Errors(), logger)
f.Error(ErrSchedulerNotStarted.Error())
f.Error("Unable to generate workflow from workflow map")
return nil, te
}

Expand Down