dont throw when no error is cast

This commit is contained in:
Ulf Gebhardt 2024-11-21 02:43:33 +01:00
parent b170d9d758
commit 115d37a6da
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -199,7 +199,7 @@ class GitRepo {
}
$status = trim(proc_close($resource));
if ($status) throw new \Exception($stderr);
if ($status && $stderr) throw new \Exception($stderr);
return $stdout;
}