From 7dc51ec8794dedbd44215ca49b0401e7570fb06b Mon Sep 17 00:00:00 2001 From: Otavio Pontes Date: Thu, 24 Oct 2019 14:33:26 -0700 Subject: [PATCH] signature: Show more information when signature file open fails Signed-off-by: Otavio Pontes --- src/signature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/signature.c b/src/signature.c index fa9b919d..bf31691e 100644 --- a/src/signature.c +++ b/src/signature.c @@ -305,7 +305,7 @@ static X509 *get_cert_from_path(const char *certificate_path) fp_pubkey = fopen(certificate_path, "re"); if (!fp_pubkey) { - error("Failed fopen %s\n", certificate_path); + error("Failed fopen %s (%i - %s)\n", certificate_path, errno, strerror(errno)); goto error; }