1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

generate-config: Don't needlessly use format string functions

Signed-off-by: Nathan Chase <ntc477@utexas.edu>
This commit is contained in:
Nathan Chase
2025-05-23 01:25:32 -04:00
committed by Stéphane Graber
parent 4ba4f280c5
commit e01ea42408

View File

@@ -1,6 +1,7 @@
package main
import (
"errors"
"fmt"
"log"
"os"
@@ -19,7 +20,7 @@ var (
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
if len(args) != 1 {
return fmt.Errorf("Please provide a path to the project")
return errors.New("Please provide a path to the project")
}
path := args[0]