From 058749cb175aea2e7ab929559da058c7fc3e6867 Mon Sep 17 00:00:00 2001 From: Jordan Knott Date: Fri, 18 Sep 2020 20:19:14 -0500 Subject: [PATCH] fix(commands/web): return error from ListenAndServe --- internal/commands/web.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/commands/web.go b/internal/commands/web.go index cd5d917..0cc884b 100644 --- a/internal/commands/web.go +++ b/internal/commands/web.go @@ -75,8 +75,7 @@ func newWebCmd() *cobra.Command { secret = uuid.New().String() } r, _ := route.NewRouter(db, []byte(secret)) - http.ListenAndServe(viper.GetString("server.hostname"), r) - return nil + return http.ListenAndServe(viper.GetString("server.hostname"), r) }, } cc.Flags().Bool("migrate", false, "if true, auto run's schema migrations before starting the web server")