From 1858c4aa453a3194adc314dbfde81179e655e545 Mon Sep 17 00:00:00 2001 From: Frank Febbraro Date: Thu, 18 Jan 2018 13:08:19 -0800 Subject: [PATCH] fixing a dashboard bug (#133) --- Gopkg.lock | 3 +-- commands/dashboard.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index 77816f8..7045d6c 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -88,7 +88,6 @@ [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "86055c933d04a9f46045c437c0e163af6622e85cf0ea6625c54c4222b52e62ab" + inputs-digest = "37871abf94f116d8e8a59b2237a112eaaa983208b2c3131fe761abd7df238104" solver-name = "gps-cdcl" solver-version = 1 - diff --git a/commands/dashboard.go b/commands/dashboard.go index 3c3b9d5..c471a96 100644 --- a/commands/dashboard.go +++ b/commands/dashboard.go @@ -33,8 +33,7 @@ func (cmd *Dashboard) Commands() []cli.Command { func (cmd *Dashboard) Run(ctx *cli.Context) error { if cmd.machine.IsRunning() || util.SupportsNativeDocker() { cmd.out.Info("Launching Dashboard") - err := cmd.LaunchDashboard(cmd.machine) - if err != nil { + if err := cmd.LaunchDashboard(cmd.machine); err == nil { // Success may be presumed to only execute once per command execution. // This allows calling LaunchDashboard() from start.go without success. return cmd.Success("")