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 a06a5c4 commit ce6bc97Copy full SHA for ce6bc97
cli/cli.go
@@ -3,6 +3,7 @@ package cli
3
import (
4
"context"
5
cryptotls "crypto/tls"
6
+ "errors"
7
"fmt"
8
"log/slog"
9
"os"
@@ -143,6 +144,11 @@ func Run(config Config, args []string) error {
143
144
return fmt.Errorf("failed to get config directory: %v", err)
145
}
146
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
+
152
// Create certificate manager (if TLS interception is enabled)
153
var certManager *tls.CertificateManager
154
var tlsConfig *cryptotls.Config
0 commit comments