Skip to content

Commit

Permalink
fixup! fix error handling in case of no resources error
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Tichák authored and teo committed Oct 22, 2024
1 parent 0da8604 commit c6df054
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/task/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ func (m *Manager) RefreshClasses(taskClassesRequired []string) (err error) {
return
}

// prefix will be prepended before name of descriptor
func logDescriptors(prefix string, logFunc func(format string, args ...interface{}), descriptos Descriptors) {
for _, desc := range descriptos {
// prefix will be prepended before name of descriptor when printing name of each descriptor
func logDescriptors(prefix string, logFunc func(format string, args ...interface{}), descriptors Descriptors) {
for _, desc := range descriptors {
printname := fmt.Sprintf("%s->%s", desc.TaskRole.GetPath(), desc.TaskClassName)
logFunc("%s%s", prefix, printname)
}
Expand Down

0 comments on commit c6df054

Please sign in to comment.