Skip to content

Commit b47f4ef

Browse files
committed
fix: TLS disabled copy
1 parent a5073a8 commit b47f4ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func Server(vip *viper.Viper, newAPI func(context.Context, *coderd.Options) (*co
108108
return xerrors.Errorf("TLS address must be set if TLS is enabled")
109109
}
110110
if !cfg.TLS.Enable.Value && cfg.HTTPAddress.Value == "" {
111-
return xerrors.Errorf("either HTTP or TLS must be enabled")
111+
return xerrors.Errorf("TLS is disabled. Enable with --tls-enable or specify a HTTP address")
112112
}
113113

114114
// Disable rate limits if the `--dangerous-disable-rate-limits` flag

cli/server_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ func TestServer(t *testing.T) {
740740
)
741741
err := root.ExecuteContext(ctx)
742742
require.Error(t, err)
743-
require.ErrorContains(t, err, "either HTTP or TLS must be enabled")
743+
require.ErrorContains(t, err, "TLS is disabled. Enable with --tls-enable or specify a HTTP address")
744744
})
745745

746746
t.Run("NoTLSAddress", func(t *testing.T) {

0 commit comments

Comments
 (0)