Exception handling for chart render test
This commit is contained in:
parent
3f981d84d4
commit
49b0549885
|
@ -113,7 +113,11 @@ foreach($inputFileNames as $inputFileName) {
|
||||||
if (file_exists($jpegFile)) {
|
if (file_exists($jpegFile)) {
|
||||||
unlink($jpegFile);
|
unlink($jpegFile);
|
||||||
}
|
}
|
||||||
$chart->render($jpegFile);
|
try {
|
||||||
|
$chart->render($jpegFile);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
echo 'Error rendering chart: ',$e->getMessage();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue