1
0

Move to fmt.Errorf

This commit is contained in:
2018-12-10 02:45:17 +00:00
parent e0f0133d42
commit 18a92703ba
2 changed files with 5 additions and 7 deletions

View File

@ -102,8 +102,7 @@ func generateBaseDockerImage(sk config.KernelMask) (err error) {
d += "RUN apt-get install -y build-essential libelf-dev\n"
d += "RUN apt-get install -y wget git\n"
default:
s := fmt.Sprintf("%s not yet supported", sk.DistroType.String())
err = errors.New(s)
err = fmt.Errorf("%s not yet supported", sk.DistroType.String())
return
}