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:
Lai Jiangshan 2015-07-25 22:23:56 +08:00
parent 32aa2756ca
commit f26935eb0c
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ func newRootfs() (string, error) {
return "", err
}
if err := copyBusybox(dir); err != nil {
return "", nil
return "", err
}
return dir, nil
}