Switch to unified view

a/src/internfile/mh_html.cpp b/src/internfile/mh_html.cpp
...
...
27
#include "smallut.h"
27
#include "smallut.h"
28
#include "md5ut.h"
28
#include "md5ut.h"
29
29
30
#include <iostream>
30
#include <iostream>
31
31
32
#ifndef NO_NAMESPACES
33
using namespace std;
32
using namespace std;
34
#endif /* NO_NAMESPACES */
35
36
33
37
bool MimeHandlerHtml::set_document_file_impl(const string& mt, const string &fn)
34
bool MimeHandlerHtml::set_document_file_impl(const string& mt, const string &fn)
38
{
35
{
39
    LOGDEB0("textHtmlToDoc: " << fn << "\n");
36
    LOGDEB0("textHtmlToDoc: " << fn << "\n");
40
    string otext;
37
    string otext;
38
    string reason;
41
    if (!file_to_string(fn, otext)) {
39
    if (!file_to_string(fn, otext, &reason)) {
42
  LOGINFO("textHtmlToDoc: cant read: " << fn << "\n");
40
        LOGERR("textHtmlToDoc: cant read: " << fn << ": " << reason << "\n");
43
    return false;
41
    return false;
44
    }
42
    }
45
    m_filename = fn;
43
    m_filename = fn;
46
    return set_document_string(mt, otext);
44
    return set_document_string(mt, otext);
47
}
45
}