INNER CODE UNIT · Go

errorHandler

grafana-cold-storage/phlare · cmd/phlare/main.go:46

func errorHandler() {
	testMode := cfg.GetTestMode()
	if !testMode {
		os.Exit(1)
	}

}
func main() {
	var (
		flags mainFlags
	)

	if err := cfg.DynamicUnmarshal(&flags, os.Args[1:], flag.CommandLine); err != nil {
		fmt.Fprintf(os.Stderr, "failed parsing config: %v\n", err)
		errorHandler()
		return
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…