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