Make sure EDOCCONVERTFAILED is passed from child doc to main doc instead of remapping it to EINTERNALERROR

This commit is contained in:
Ai Lin Chia
2018-01-04 11:47:00 +01:00
parent bd43066178
commit 17ec77139c

@ -1791,9 +1791,15 @@ bool XmlDoc::indexDoc ( ) {
m_indexCodeValid = true;
}
if ( g_errno == EDOCCONVERTFAILED ) {
m_indexCode = g_errno;
m_indexCodeValid = true;
}
// default to internal error which will be retried forever otherwise
if ( ! m_indexCodeValid ) {
m_indexCode = EINTERNALERROR;//g_errno;
logTrace(g_conf.m_logTraceXmlDoc, "Setting indexCode to EINTERNALERROR. g_errno=%s", mstrerror(g_errno));
m_indexCode = EINTERNALERROR;
m_indexCodeValid = true;
}