Fail fast on taskdir errors

This commit is contained in:
Michael Schurter 2017-01-04 10:42:55 -08:00
parent 7260d0bca3
commit 774afd8800
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ func (r *AllocRunner) RestoreState() error {
err := fmt.Errorf("failed to find task dir metadata for alloc %q task %q",
r.alloc.ID, name)
r.logger.Printf("[ERR] client: %v", err)
mErr.Errors = append(mErr.Errors, err)
return err
}
task := &structs.Task{Name: name}