Skip to content

Commit ce6bc97

Browse files
committed
try and narrow down ci failure to config dir fetching
1 parent a06a5c4 commit ce6bc97

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cli/cli.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package cli
33
import (
44
"context"
55
cryptotls "crypto/tls"
6+
"errors"
67
"fmt"
78
"log/slog"
89
"os"
@@ -143,6 +144,11 @@ func Run(config Config, args []string) error {
143144
return fmt.Errorf("failed to get config directory: %v", err)
144145
}
145146

147+
if configDir == "" {
148+
logger.Error("Config dir received was the empty string")
149+
return errors.New("config dir received was the empty string")
150+
}
151+
146152
// Create certificate manager (if TLS interception is enabled)
147153
var certManager *tls.CertificateManager
148154
var tlsConfig *cryptotls.Config

0 commit comments

Comments
 (0)