Skip to content

Commit

Permalink
[lxd-import] lxd/instance/drivers: Extend error message in deviceAddC…
Browse files Browse the repository at this point in the history
…groupRules

Signed-off-by: Thomas Hipp <[email protected]>
  • Loading branch information
monstermunchkin authored and stgraber committed Oct 24, 2023
1 parent 9119691 commit f8d987f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/instance/drivers/driver_lxc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1529,7 +1529,7 @@ func (d *lxc) deviceAddCgroupRules(cgroups []deviceConfig.RunConfigItem) error {
// Add the new device cgroup rule.
err := d.CGroupSet(rule.Key, rule.Value)
if err != nil {
return fmt.Errorf("Failed to add cgroup rule for device")
return fmt.Errorf("Failed to add cgroup rule for device: %w", err)
}
}

Expand Down

0 comments on commit f8d987f

Please sign in to comment.