Added better error handling

Co-authored-by: WestleyK <westleyk@nym.hush.com>
This commit is contained in:
Christian Goll
2021-09-17 11:50:47 +02:00
committed by GitHub
parent 5772c44a0c
commit ea577dda31

View File

@@ -83,7 +83,7 @@ func Build(kernelVersion string, root string) (string, error) {
return "", errors.Wrap(err, "failed to create kernal dest")
}
if err := os.MkdirAll(path.Dir(driversDestination), 0755) ; err != nil {
return "", err
return "", errors.Wrap(err, "failed to create driver dest")
}
if !util.IsFile(kernelImage) {