Skip to content

Commit 1ff2c90

Browse files
committed
chore: update copy when printing auth key
1 parent 085989b commit 1ff2c90

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

cmd/wush/serve.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ func serveCmd() *serpent.Command {
8484
// Ensure we always print the auth key on stdout
8585
if isatty.IsTerminal(os.Stdout.Fd()) {
8686
hlog("Your auth key is:")
87-
fmt.Println("\t>", cliui.Code(r.ClientAuth().AuthKey()))
87+
fmt.Println(" >", cliui.Code(r.ClientAuth().AuthKey()))
8888
hlog("Use this key to authenticate other " + cliui.Code("wush") + " commands to this instance.")
8989
hlog("Visit the following link to connect via the browser:")
90-
fmt.Println("\t>", cliui.Code("https://wush.dev#"+r.ClientAuth().AuthKey()))
90+
fmt.Println(" >", cliui.Code("https://wush.dev#"+r.ClientAuth().AuthKey()))
9191
} else {
9292
fmt.Println(cliui.Code(r.ClientAuth().AuthKey()))
9393
hlog("The auth key has been printed to stdout")
@@ -105,7 +105,10 @@ func serveCmd() *serpent.Command {
105105
return err
106106
}
107107

108-
ts.Up(ctx)
108+
_, err = ts.Up(ctx)
109+
if err != nil {
110+
return fmt.Errorf("bring wireguard up: %w", err)
111+
}
109112
fs := afero.NewOsFs()
110113

111114
// hlog("WireGuard is ready")

0 commit comments

Comments
 (0)