- replace os.IsNotExist with errors.Is and fs.ErrNotExist
- use %w directive
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
err=fmt.Errorf("An error occurred while checking for chart dependencies. You may need to run `helm dependency build` to fetch missing dependencies: %w",err)
returnnil,fmt.Errorf("failed reloading chart after repo update: %w",err)
returnnil,fmt.Errorf("failed reloading chart after repo update: %w",err)
}
}
}else{
}else{
returnnil, err
returnnil,fmt.Errorf("An error occurred while checking for chart dependencies. You may need to run `helm dependency build` to fetch missing dependencies: %w",err)