mirror of
https://github.com/siderolabs/talos.git
synced 2025-12-10 20:11:23 +01:00
fix: improve error message when creating cluster
Add extra context to error message when unable to properly open the talos config file when creating a cluster. Signed-off-by: Tim Jones <tim.jones@siderolabs.com>
This commit is contained in:
parent
f03002ec68
commit
bafa1f49d4
@ -698,7 +698,7 @@ func postCreate(ctx context.Context, clusterAccess *access.Adapter) error {
|
||||
func saveConfig(talosConfigObj *clientconfig.Config) (err error) {
|
||||
c, err := clientconfig.Open(talosconfig)
|
||||
if err != nil {
|
||||
return err
|
||||
return fmt.Errorf("error opening talos config: %s", err)
|
||||
}
|
||||
|
||||
renames := c.Merge(talosConfigObj)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user