summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-16 15:15:00 +0800
committerUnknwon <u@gogs.io>2016-07-16 15:15:00 +0800
commite3d3d424b2e8e5a8c4ee847bfe77b6f160d45196 (patch)
tree433c6361f716b6ee29a821908ab797fbfb58d56c /cmd
parent971e2c3bd6a63a9d75ee7b222b8ec1716f47fbb6 (diff)
downloadgitea-e3d3d424b2e8e5a8c4ee847bfe77b6f160d45196.tar.gz
gitea-e3d3d424b2e8e5a8c4ee847bfe77b6f160d45196.zip
Minor fix for go vet
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cert.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/cert.go b/cmd/cert.go
index cd6972ea86..d0cdf38cd1 100644
--- a/cmd/cert.go
+++ b/cmd/cert.go
@@ -59,7 +59,7 @@ func pemBlockForKey(priv interface{}) *pem.Block {
case *ecdsa.PrivateKey:
b, err := x509.MarshalECPrivateKey(k)
if err != nil {
- log.Fatal("unable to marshal ECDSA private key: %v", err)
+ log.Fatalf("Unable to marshal ECDSA private key: %v\n", err)
}
return &pem.Block{Type: "EC PRIVATE KEY", Bytes: b}
default:
@@ -153,7 +153,7 @@ func runCert(ctx *cli.Context) error {
keyOut, err := os.OpenFile("key.pem", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)
if err != nil {
- log.Fatal("failed to open key.pem for writing: %v", err)
+ log.Fatalf("Failed to open key.pem for writing: %v\n", err)
}
pem.Encode(keyOut, pemBlockForKey(priv))
keyOut.Close()