From 7e5a3080677e102aae886f04ff37873f92654f64 Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Sun, 15 Sep 2024 13:27:55 +0300 Subject: [PATCH] Improve error message --- plugins/pelican-bibtex/pelican_bibtex.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/pelican-bibtex/pelican_bibtex.py b/plugins/pelican-bibtex/pelican_bibtex.py index bba12d9d..e89b4775 100644 --- a/plugins/pelican-bibtex/pelican_bibtex.py +++ b/plugins/pelican-bibtex/pelican_bibtex.py @@ -72,13 +72,13 @@ def add_publications(generator): entry = bibdata_all.entries[key] year = entry.fields.get('year') if not year: - logger.error(f'`pelican_bibtex` Missing year field for {entry}') + logger.error(f'`pelican_bibtex` Missing year field for {key}') XEcategory = entry.fields.get('XEcategory') if not XEcategory: - logger.error(f'`pelican_bibtex` Missing XEcategory field for {entry}') + logger.error(f'`pelican_bibtex` Missing XEcategory field for {key}') XEmember = entry.fields.get('XEmember') if not XEmember: - logger.error(f'`pelican_bibtex` Missing XEmember field for {entry}') + logger.error(f'`pelican_bibtex` Missing XEmember field for {key}') XEProject = entry.fields.get('XEProject') url = entry.fields.get('XEurl')