Get rid of dynamic errors

This commit is contained in:
Kristoffer Dalby
2021-11-15 19:18:14 +00:00
parent 25b790d025
commit d6739386a0
10 changed files with 53 additions and 22 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ var expirePreAuthKeyCmd = &cobra.Command{
Short: "Expire a preauthkey",
Args: func(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
return fmt.Errorf("missing parameters")
return errMissingParameter
}
return nil