1
0
Fork 0
mirror of synced 2024-05-20 20:52:36 +12:00

Throw error only on nonzero exit code

This commit is contained in:
kodumbeats 2021-03-22 08:44:13 -04:00
parent fc83bc1276
commit d6fc03ca63

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);
}