Added better error handling

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

View File

@@ -80,7 +80,7 @@ func Build(kernelVersion string, root string) (string, error) {
// Create the destination paths just in case it doesn't exist
if err := os.MkdirAll(path.Dir(kernelDestination), 0755) ; err != nil {
return "", err
return "", errors.Wrap(err, "failed to create kernal dest")
}
if err := os.MkdirAll(path.Dir(driversDestination), 0755) ; err != nil {
return "", err