Merge pull request #1010 from appwrite/fix-1001-worker-certificates-error-handling
Throw certbot error on nonzero exit code
This commit is contained in:
commit
98784dfdf8
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ class CertificatesV1
|
||||||
." -w ".APP_STORAGE_CERTIFICATES
|
." -w ".APP_STORAGE_CERTIFICATES
|
||||||
." -d {$domain->get()}", '', $stdout, $stderr);
|
." -d {$domain->get()}", '', $stdout, $stderr);
|
||||||
|
|
||||||
if($stderr || $exit !== 0) {
|
if($exit !== 0) {
|
||||||
throw new Exception('Failed to issue a certificate with message: '.$stderr);
|
throw new Exception('Failed to issue a certificate with message: '.$stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue