fix: update URL format in docker-compose and enhance error handling in http2pic class

This commit is contained in:
2026-04-19 21:27:04 +02:00
parent faea2b0899
commit 4a548f50e7
4 changed files with 75 additions and 11 deletions

View File

@@ -178,11 +178,14 @@ class http2pic
$cmd.=' --wait-for-network-idle';
var_dump($cmd);
$cmd = escapeshellcmd($cmd);
shell_exec($cmd);
$output = [];
$rc = 0;
exec($cmd . ' 2>&1', $output, $rc);
$this->params['cmd'] = $cmd;
if ($rc !== 0) {
$this->params['render_error'] = implode("\n", $output);
}
$this->postRender();