shithub: riscv

Download patch

ref: fdeea811b7f309e1bd542a0a23fd382e332b2c2e
parent: ebeb158a082f5f0b21029cf356d2099bcbaca0fb
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Feb 17 02:05:54 EST 2015

tlssrv: produce meaningfull error message when unable to read certificate

--- a/sys/src/cmd/tlssrv.c
+++ b/sys/src/cmd/tlssrv.c
@@ -70,7 +70,7 @@
 		sysfatal("out of memory");
 	conn->chain = readcertchain(cert);
 	if(conn->chain == nil)
-		sysfatal("can't read certificate %s", cert);
+		sysfatal("%r");
 	conn->cert = conn->chain->pem;
 	conn->certlen = conn->chain->pemlen;
 	conn->chain = conn->chain->next;