From 16eb6410332b5319a58fa90767322d786e018493 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Sat, 23 Nov 2024 20:55:19 +0100 Subject: [PATCH] Update website --- publi_bib.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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()); +}