mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-22 21:36:05 +03:00
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);
|
||||
}
|
||||
$chart->render($jpegFile);
|
||||
try {
|
||||
$chart->render($jpegFile);
|
||||
} catch (Exception $e) {
|
||||
echo 'Error rendering chart: ',$e->getMessage();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user