sandbox/init: fail early on nil op
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
70c9757e26
commit
528674cb6e
@ -143,6 +143,10 @@ func Init(prepare func(prefix string), setVerbose func(verbose bool)) {
|
||||
}
|
||||
|
||||
for i, op := range *params.Ops {
|
||||
if op == nil {
|
||||
log.Fatalf("invalid op %d", i)
|
||||
}
|
||||
|
||||
msg.Verbosef("mounting %s", op)
|
||||
if err := op.apply(¶ms.InitParams); err != nil {
|
||||
msg.PrintBaseErr(err,
|
||||
|
Loading…
Reference in New Issue
Block a user