forked from Mirrors/privacore-open-source-search-engine
Make sure EDOCCONVERTFAILED is passed from child doc to main doc instead of remapping it to EINTERNALERROR
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user