worker: don't call log.Fatalf() unconditionally
Oops.
This commit is contained in:
parent
8c4ee795f7
commit
dff8cb56be
1 changed files with 3 additions and 2 deletions
|
|
@ -112,7 +112,8 @@ func main() {
|
|||
|
||||
client := NewClient()
|
||||
for {
|
||||
err = handleJob(client, distro)
|
||||
log.Fatalf("Failed to handle job: " + err.Error())
|
||||
if err := handleJob(client, distro); err != nil {
|
||||
log.Fatalf("Failed to handle job: " + err.Error())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue