summaryrefslogtreecommitdiffstats
path: root/commands/benchmark.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-03-25 14:37:04 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-03-27 15:43:56 +0200
commit15b64d51da48807c5f896f17b33d8c0d054c9461 (patch)
treeb8f585ad5a1741b26540184ec29ec2a26fc4060f /commands/benchmark.go
parent148fedd227b8f4f5af8f72cb6841653140f82dfe (diff)
all: Propagate baseURL error to the callers
Diffstat (limited to 'commands/benchmark.go')
-rw-r--r--commands/benchmark.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/commands/benchmark.go b/commands/benchmark.go
index 4f9ab828b..6c42992a0 100644
--- a/commands/benchmark.go
+++ b/commands/benchmark.go
@@ -54,7 +54,10 @@ func benchmark(cmd *cobra.Command, args []string) error {
return err
}
- c := newCommandeer(cfg)
+ c, err := newCommandeer(cfg)
+ if err != nil {
+ return err
+ }
var memProf *os.File
if memProfileFile != "" {