Skip to content

Commit

Permalink
lxc/operation: use errors.New() where appropriate
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Sep 5, 2024
1 parent eb088bd commit 1f0ba9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lxc/operation.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"errors"
"fmt"
"sort"
"strings"
Expand Down Expand Up @@ -133,7 +134,7 @@ func (c *cmdOperationList) run(cmd *cobra.Command, args []string) error {

resource := resources[0]
if resource.name != "" {
return fmt.Errorf(i18n.G("Filtering isn't supported yet"))
return errors.New(i18n.G("Filtering isn't supported yet"))
}

// Get operations
Expand Down

0 comments on commit 1f0ba9d

Please sign in to comment.