Fail fast on taskdir errors
This commit is contained in:
parent
7260d0bca3
commit
774afd8800
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue