git: 9front

Download patch

ref: f76b831c21f87ebf32d567dfcf4d8bbb485e1a54
parent: ac0f81c94acf3334ee7e82f84af9a6be60076d57
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;
--