From fdeea811b7f309e1bd542a0a23fd382e332b2c2e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 17 Feb 2015 07:05:54 +0100 Subject: [PATCH] tlssrv: produce meaningfull error message when unable to read certificate --- sys/src/cmd/tlssrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/tlssrv.c b/sys/src/cmd/tlssrv.c index 3969837d5..d9d24489c 100644 --- a/sys/src/cmd/tlssrv.c +++ b/sys/src/cmd/tlssrv.c @@ -70,7 +70,7 @@ main(int argc, char *argv[]) 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;