1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

better error messages.

This commit is contained in:
Deepak Thukral 2013-02-22 10:11:27 +01:00
parent 88d5a5b0ca
commit a22857b8ef

View File

@ -415,7 +415,7 @@ void HTMLRenderer::post_process(void)
{
ifstream fin(f_outline.path, ifstream::binary);
if(!fin)
throw "Cannot open read the pages";
throw "Cannot open outline for reading";
output << fin.rdbuf();
output.clear(); // output will set fail big if fin is empty
}
@ -424,7 +424,7 @@ void HTMLRenderer::post_process(void)
{
ifstream fin(f_pages.path, ifstream::binary);
if(!fin)
throw "Cannot open read the pages";
throw "Cannot open pages for reading";
output << fin.rdbuf();
output.clear(); // output will set fail big if fin is empty
}