Skip to content

Commit

Permalink
lxd/instance/drivers/driver/lxc: Improve error message for loading go…
Browse files Browse the repository at this point in the history
…-lxc

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
  • Loading branch information
tomponline committed Jul 2, 2024
1 parent 0245196 commit 47ac5ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lxd/instance/drivers/driver_lxc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1924,7 +1924,7 @@ func (d *lxc) startCommon() (string, []func() error, error) {
// Load the go-lxc struct
cc, err := d.initLXC(true)
if err != nil {
return "", nil, fmt.Errorf("Load go-lxc struct: %w", err)
return "", nil, fmt.Errorf("Failed loading go-lxc: %w", err)
}

// Ensure cgroup v1 configuration is set appropriately with the image using systemd
Expand Down Expand Up @@ -7076,7 +7076,7 @@ func (d *lxc) Exec(req api.InstanceExecPost, stdin *os.File, stdout *os.File, st
if !shared.PathExists(configPath) {
cc, err := d.initLXC(true)
if err != nil {
return nil, fmt.Errorf("Load go-lxc struct: %w", err)
return nil, fmt.Errorf("Failed loading go-lxc: %w", err)
}

err = cc.SaveConfigFile(configPath)
Expand Down

0 comments on commit 47ac5ec

Please sign in to comment.