fix output

This commit is contained in:
Jeromy 2016-02-05 12:50:07 -08:00
parent 3d1f86ce0c
commit bea3a07bf4

View File

@ -24,13 +24,13 @@ func main() {
os.Exit(1) os.Exit(1)
} }
fmt.Fprintf(os.Stderr, "Generating a %d bit %s key...", *size, *typ) fmt.Fprintf(os.Stderr, "Generating a %d bit %s key...\n", *size, *typ)
priv, pub, err := ci.GenerateKeyPair(atyp, *size) priv, pub, err := ci.GenerateKeyPair(atyp, *size)
if err != nil { if err != nil {
fmt.Fprintln(os.Stderr, err) fmt.Fprintln(os.Stderr, err)
os.Exit(1) os.Exit(1)
} }
fmt.Fprintf(os.Stderr, "Success!") fmt.Fprintln(os.Stderr, "Success!")
pid, err := peer.IDFromPublicKey(pub) pid, err := peer.IDFromPublicKey(pub)
if err != nil { if err != nil {