std::string background_name(
temp_file_name(temp_dir_, "menu-%3d-back.png", 1 + index));
- std::cout << "saving " << background_name << std::endl;
+ std::cout << "INFO: Saving " << background_name << std::endl;
background->save(background_name, "png");
std::string highlights_name(
temp_file_name(temp_dir_, "menu-%3d-links.png", 1 + index));
- std::cout << "saving " << highlights_name << std::endl;
+ std::cout << "INFO: Saving " << highlights_name << std::endl;
highlights->save(highlights_name, "png");
std::string spumux_name(
const char * argv[] = {
"/bin/sh", "-c", command.c_str(), 0
};
- std::cout << "running " << command << std::endl;
+ std::cout << "INFO: Running " << command << std::endl;
int command_result;
Glib::spawn_sync(".",
Glib::ArrayHandle<std::string>(
{
assert(!page_queue_.empty());
const std::string & uri = page_queue_.front();
- std::cout << "loading " << uri << std::endl;
+ std::cout << "INFO: Loading " << uri << std::endl;
browser_widget_.load_uri(uri);
}
}
catch (std::exception & e)
{
- std::cerr << "Fatal error";
if (!page_queue_.empty())
- std::cerr << " while processing <" << page_queue_.front()
- << ">";
- std::cerr << ": " << e.what() << "\n";
+ std::cerr << "ERROR: While processing <"
+ << page_queue_.front() << ">:\n";
+ std::cerr << "ERROR: " << e.what() << "\n";
Gtk::Main::quit();
}
catch (Glib::Exception & e)
{
- std::cerr << "Fatal error";
if (!page_queue_.empty())
- std::cerr << " while processing <" << page_queue_.front()
- << ">";
- std::cerr << ": " << e.what() << "\n";
+ std::cerr << "ERROR: While processing <"
+ << page_queue_.front() << ">:\n";
+ std::cerr << "ERROR: " << e.what() << "\n";
Gtk::Main::quit();
}
}
if (state->link_rect.empty())
{
- std::cerr << "Ignoring invisible link to "
+ std::cerr << "WARN: Ignoring invisible link to "
<< uri_and_fragment << "\n";
continue;
}
check(uri_iface->SchemeIs("file", &is_file));
if (!is_file)
{
- std::cerr << "Links to video must use the file:"
- << " scheme\n";
+ std::cerr << "WARN: Ignoring non-file link to "
+ << uri_and_fragment << "\n";
continue;
}
target = add_title(uri, format);
void fatal_error(const std::string & message)
{
- std::cerr << "Fatal error: " << message << "\n";
+ std::cerr << "ERROR: " << message << "\n";
Gtk::Main::quit();
}
}
catch (std::exception & e)
{
- std::cerr << "Fatal error: " << e.what() << "\n";
+ std::cerr << "ERROR: " << e.what() << "\n";
return EXIT_FAILURE;
}
}