use errors.New when not formatting

This commit is contained in:
Joel Wetzell
2025-12-23 15:00:30 -06:00
parent 76583b1fb8
commit ff1949ce69
49 changed files with 245 additions and 229 deletions

View File

@@ -2,7 +2,7 @@ package main
import (
"context"
"fmt"
"errors"
"log/slog"
"os"
"os/signal"
@@ -42,7 +42,7 @@ func main() {
Action: func(ctx context.Context, c *cli.Command) error {
configPath := c.String("config")
if configPath == "" {
return fmt.Errorf("config value cannot be empty")
return errors.New("config value cannot be empty")
}
config, err := readConfig(configPath)