Skip to content

Commit 27dd386

Browse files
committed
fix: TLS disabled copy
1 parent dcf6c20 commit 27dd386

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func Server(vip *viper.Viper, newAPI func(context.Context, *coderd.Options) (*co
101101
return xerrors.Errorf("TLS address must be set if TLS is enabled")
102102
}
103103
if !cfg.TLS.Enable.Value && cfg.HTTPAddress.Value == "" {
104-
return xerrors.Errorf("either HTTP or TLS must be enabled")
104+
return xerrors.Errorf("TLS is disabled. Enable with --tls-enable or specify a HTTP address")
105105
}
106106

107107
printLogo(cmd)

cli/server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ func TestServer(t *testing.T) {
685685
)
686686
err := root.ExecuteContext(ctx)
687687
require.Error(t, err)
688-
require.ErrorContains(t, err, "either HTTP or TLS must be enabled")
688+
require.ErrorContains(t, err, "TLS is disabled. Enable with --tls-enable or specify a HTTP address")
689689
})
690690

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

0 commit comments

Comments
 (0)