From ad76cb5c5ffbb8e126c4c889abac504864f17cda Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 5 Jun 2008 05:39:48 +0000 Subject: [PATCH] Give an error message here. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25133 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetBibtex.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp index 38845a4a16..55a20edefb 100644 --- a/src/insets/InsetBibtex.cpp +++ b/src/insets/InsetBibtex.cpp @@ -403,10 +403,11 @@ support::FileNameList InsetBibtex::getBibFiles() const for (; it != en; ++it) { FileName const file = findtexfile(changeExtension(to_utf8(*it), "bib"), "bib"); - - // If we didn't find a matching file name just fail silently + if (!file.empty()) vec.push_back(file); + else + LYXERR0("Couldn't find " + to_utf8(*it) + " in InsetBibtex::getBibFiles()!"); } return vec;