1
0
Fork 0
mirror of synced 2024-06-23 08:40:58 +12:00

Merge pull request #1010 from appwrite/fix-1001-worker-certificates-error-handling

Throw certbot error on nonzero exit code
This commit is contained in:
Eldad A. Fux 2021-03-22 22:03:51 +02:00 committed by GitHub
commit 98784dfdf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,7 +124,7 @@ class CertificatesV1
." -w ".APP_STORAGE_CERTIFICATES
." -d {$domain->get()}", '', $stdout, $stderr);
if($stderr || $exit !== 0) {
if($exit !== 0) {
throw new Exception('Failed to issue a certificate with message: '.$stderr);
}