commit 1b15e4f26602d70ead07f116dba431c5a7087a6f
parent 3e2950074a26a8e4536ac02759b5e85c4e8f20b8
Author: parazyd <parazyd@dyne.org>
Date: Thu, 7 Dec 2017 18:56:56 +0100
Change log.Fatal to log.Fatalln
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/go/ddir/ddir.go b/go/ddir/ddir.go
@@ -32,7 +32,7 @@ func parsePost(rw http.ResponseWriter, request *http.Request) {
}
if lib.ValidateReq(req) != true {
- log.Fatal("Request is not valid.")
+ log.Fatalln("Request is not valid.")
}
}
diff --git a/go/lib/crypto.go b/go/lib/crypto.go
@@ -110,7 +110,7 @@ func VerifyMsg(message []byte, signature []byte, pubkey []byte) (bool, error) {
case *rsa.PublicKey:
log.Println("Valid RSA key parsed.")
default:
- log.Fatal("Public key is not of type RSA! It is: ", pkey)
+ log.Fatalln("Public key is not of type RSA! It is: ", pkey)
return false, err
}