We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 972d6d6 commit 3fd9d48Copy full SHA for 3fd9d48
cmd/prw/main.go
@@ -223,7 +223,10 @@ var configShowCmd = &cobra.Command{
223
return fmt.Errorf("failed to load config: %w", err)
224
}
225
226
- path, _ := config.ConfigPath()
+ path, err := config.ConfigPath()
227
+ if err != nil {
228
+ return fmt.Errorf("failed to determine config path: %w", err)
229
+ }
230
fmt.Printf("Config file: %s\n\n", path)
231
fmt.Printf("poll_interval_seconds: %d\n", cfg.PollIntervalSeconds)
232
fmt.Printf("webhook_url: %s\n", cfg.WebhookURL)
0 commit comments