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)) {
|
||||
unlink($jpegFile);
|
||||
}
|
||||
try {
|
||||
$chart->render($jpegFile);
|
||||
} catch (Exception $e) {
|
||||
echo 'Error rendering chart: ',$e->getMessage();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue