Throw error only on nonzero exit code
This commit is contained in:
parent
fc83bc1276
commit
d6fc03ca63
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue