From e94b6ec5f082aaad9dccf2e94ab6d4dc17aaee56 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Tue, 10 Sep 2019 10:43:11 -0400 Subject: [PATCH] Give error if undefined citations with Biblatex This commit catches situations when one key in a multi-key citation is not defined. This commit causes an error to be given, but the name of the key that is undefined is not provided in the error dialog. This commit is consistent with bf99ece7. For more information, and possible follow-up discussion (e.g., on putting the key in the error dialog), see the following ML thread: https://www.mail-archive.com/search?l=mid&q=20190908165644.qnz6xu5bm5eqiko6%40boogie --- src/LaTeX.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp index 4096ca9f63..5cb5df4c78 100644 --- a/src/LaTeX.cpp +++ b/src/LaTeX.cpp @@ -781,7 +781,8 @@ int LaTeX::scanLogFile(TeXErrors & terr) //TODO: TL 2020 engines will contain new commandline switch --cnf-line which we //can use to set max_print_line variable for appropriate length and detect all //errors correctly. - if (contains(token, "There were undefined citations.")) + if (contains(token, "There were undefined citations.") || + prefixIs(token, "Package biblatex Warning: The following entry could not be found")) retval |= UNDEF_CIT; if (prefixIs(token, "LaTeX Warning:") || -- 2.39.5