fixing a lazy mistake w/ incorrect err type

This commit is contained in:
Brad Rydzewski 2016-01-22 12:17:04 -08:00
parent 31f1b8620c
commit 171b986b70

View file

@ -68,7 +68,7 @@ func (w *worker) Build(name string, stdin []byte, pr bool) (_ int, err error) {
return 1, err
}
if w.build.State.OOMKilled {
return 1, fmt.Sprintf("OOMKill received")
return 1, fmt.Errorf("OOMKill received")
}
return w.build.State.ExitCode, err
}