diff --git a/publi_bib.php b/publi_bib.php index 9781eab..90ead00 100644 --- a/publi_bib.php +++ b/publi_bib.php @@ -18,9 +18,14 @@ $parser = new Parser(); $parser->addListener($listener); // Parse the content, then read processed data from the Listener -$parser->parseFile('assets/bib/export-bibtex.bib'); -$entries = $listener->export(); - -print_r($entries); +try { + $parser->parseFile('assets/bib/export-bibtex.bib'); + $entries = $listener->export(); + + print_r($entries); +} catch (Exception $e) { + print_r($e); + print_r($e->getMessage()); +}