File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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")
You can’t perform that action at this time.
0 commit comments