diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-06 16:46:10 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-06 16:46:10 -0700 |
| commit | f4a69647659df356f7f1d1ab1d8b4eedcc34dfba (patch) | |
| tree | f3e8f2cd4590db0a10d7d2f8ed2bcb0228046928 /hotline | |
| parent | 5350396308932e1dabdc10c7b342b528d2f60a15 (diff) | |
Improve handling of client config default path
Diffstat (limited to 'hotline')
| -rw-r--r-- | hotline/client.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hotline/client.go b/hotline/client.go index 24df7c3..1e2972f 100644 --- a/hotline/client.go +++ b/hotline/client.go @@ -103,8 +103,7 @@ func NewClient(cfgPath string, logger *zap.SugaredLogger) *Client { prefs, err := readConfig(cfgPath) if err != nil { - fmt.Printf("unable to read config file %s", cfgPath) - os.Exit(1) + logger.Fatal(fmt.Sprintf("unable to read config file %s\n", cfgPath)) } c.pref = prefs |