diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp index a387a4f994..68cf1d24d0 100644 --- a/src/insets/InsetInclude.cpp +++ b/src/insets/InsetInclude.cpp @@ -511,8 +511,14 @@ int InsetInclude::latex(odocstream & os, OutputParams const & runparams) const isLyXFilename(included_file.absFilename())) { //if it's a LyX file and we're inputting or including, //try to load it so we can write the associated latex - if (!loadIfNeeded(buffer())) + if (!loadIfNeeded(buffer())) { + docstring text = bformat(_("Could not load included " + "file\n`%1$s'\n" + "Please, check whether it actually exists."), + included_file.displayName()); + Alert::warning(_("Missing included file"), text); return false; + } Buffer * tmp = theBufferList().getBuffer(included_file); diff --git a/status.16x b/status.16x index 36970b8d17..94e953f276 100644 --- a/status.16x +++ b/status.16x @@ -75,6 +75,8 @@ What's new - Fix broken commits in VCS when message contains quotes (bug 7338). +- Issue a warning when an included file could not be loaded (bug 7343). + * DOCUMENTATION AND LOCALIZATION