test: propagate the error to the caller
When the copyBusybox() fails, the error message should be propagated to the caller of newRootfs(). Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
This commit is contained in:
parent
32aa2756ca
commit
f26935eb0c
|
@ -72,7 +72,7 @@ func newRootfs() (string, error) {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
if err := copyBusybox(dir); err != nil {
|
if err := copyBusybox(dir); err != nil {
|
||||||
return "", nil
|
return "", err
|
||||||
}
|
}
|
||||||
return dir, nil
|
return dir, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue