Do not ignore literate programming errors

This commit is contained in:
Georg Baum 2013-11-14 21:04:37 +01:00
parent 2aa2544e1d
commit 8eb8e49ebe

View File

@ -2371,9 +2371,13 @@ void Buffer::dispatch(FuncRequest const & func, DispatchResult & dr)
break; break;
} }
case LFUN_BUILD_PROGRAM: case LFUN_BUILD_PROGRAM: {
doExport("program", true); ExportStatus const status = doExport("program", true);
dr.setError(status != ExportSuccess);
if (status != ExportSuccess)
dr.setMessage(_("Error generating literate programming code."));
break; break;
}
case LFUN_BUFFER_CHKTEX: case LFUN_BUFFER_CHKTEX:
runChktex(); runChktex();