aboutsummaryrefslogtreecommitdiff
path: root/cmd/cert_stub.go
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-11-30 01:38:35 -0500
committer无闻 <joe2010xtmf@163.com>2014-11-30 01:38:35 -0500
commit1591a37ad5385f5a568ef08ab57e1b2a1d0bb4bd (patch)
tree683faf378ebc09cedffebfd5c38e0a764fedf308 /cmd/cert_stub.go
parentb6437b5a4c52bceb8032b00b474c2aa0ced69575 (diff)
parent3e528f34af62cd8d62aa5ecaf98e4c043a9ff3df (diff)
Merge pull request #686 from willglynn/cert_stub_exit_code
Cert command stub should return a non-zero exit code
Diffstat (limited to 'cmd/cert_stub.go')
-rw-r--r--cmd/cert_stub.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/cert_stub.go b/cmd/cert_stub.go
index 2029f4cb..69c9821e 100644
--- a/cmd/cert_stub.go
+++ b/cmd/cert_stub.go
@@ -8,6 +8,7 @@ package cmd
import (
"fmt"
+ "os"
"time"
"github.com/codegangsta/cli"
@@ -31,4 +32,5 @@ Outputs to 'cert.pem' and 'key.pem' and will overwrite existing files.`,
func runCert(ctx *cli.Context) {
fmt.Println("Command cert not available, please use build tags 'cert' to rebuild.")
+ os.Exit(1)
}