From 722cf107f5a382cd89340b3203ed6db8d418723e Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Wed, 29 Jan 2020 17:12:41 -0700 Subject: [PATCH] get the server from the now properly stored server --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index e0bb629..115eaa5 100644 --- a/main.go +++ b/main.go @@ -41,11 +41,12 @@ func main() { flag.Parse() if server == "" { - server, _ = store.get("config", "server") + server, err = store.get("config", "server") if server == "" { log.Fatalln("please specify a server") } + } else { store.set("config", "server", server) }