From 832414ca490255dffe949b136188ee8cc7eac930 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Mon, 24 Feb 2020 14:55:24 +0200 Subject: [PATCH] Updated errors --- app/workers/certificates.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/workers/certificates.php b/app/workers/certificates.php index c68fc938b7..1129aa5ea0 100644 --- a/app/workers/certificates.php +++ b/app/workers/certificates.php @@ -95,7 +95,7 @@ class CertificatesV1 } if(!rename('/etc/letsencrypt/live/'.$domain->get(), APP_STORAGE_CERTIFICATES.'/'.$domain->get())) { - throw new Exception('Failed to copy certificate: '.$staging.json_encode($response)); + throw new Exception('Failed to copy certificate: '.json_encode($response)); } $certificate = array_merge($certificate, [ @@ -107,7 +107,7 @@ class CertificatesV1 'domain' => $domain->get(), 'issueDate' => time(), 'attempts' => 0, - 'log' => $staging.json_encode($response), + 'log' => json_encode($response), ]); $certificate = $consoleDB->createDocument($certificate);