Skip to content

Commit fa7f3c0

Browse files
committed
[core] Slightly improved error output
1 parent 1578a2f commit fa7f3c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/environment/manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ func (envs *Manager) CreateEnvironment(workflowPath string, userVars map[string]
194194
// Ensure we provide a very defaulty `detectors` variable
195195
detectors, err := the.ConfSvc().GetDetectorsForHosts(env.GetFLPs())
196196
if err != nil {
197-
err = fmt.Errorf("cannot load workflow template: %w", err)
197+
err = fmt.Errorf("cannot acquire detectors in loaded workflow template: %w", err)
198198

199199
return env.id, err
200200
}
201201
detectorsStr, err := SliceToJSONSlice(detectors)
202202
if err != nil {
203-
err = fmt.Errorf("cannot load workflow template: %w", err)
203+
err = fmt.Errorf("cannot process detectors in loaded workflow template: %w", err)
204204

205205
return env.id, err
206206
}

0 commit comments

Comments
 (0)