Exception handling for chart render test

This commit is contained in:
Mark Baker 2012-10-07 21:36:47 +01:00
parent 3f981d84d4
commit 49b0549885
1 changed files with 5 additions and 1 deletions

View File

@ -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();
}
} }
} }
} }