Skip to content
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 worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ func newWorker(o workerOpt) (*worker, error) {
// ensure the filename or name are not already registered
for _, w := range workers {
if w.name == o.name {
return w, fmt.Errorf("2 workers cannot have the same name: %q.", o.name)
return w, fmt.Errorf("2 workers cannot have the same name: %q", o.name)
}
if w.fileName == absFileName {
return w, fmt.Errorf("2 workers cannot have the same filename: %q.", absFileName)
return w, fmt.Errorf("2 workers cannot have the same filename: %q", absFileName)
}
}

Expand Down