_log::file_writer::file_writer(const std::string& name) { try { if (!m_file.open(fs::get_config_dir() + name, fs::rewrite + fs::append)) { throw fmt::exception("Can't create log file %s (error %d)", name, errno); } } catch (...) { catch_all_exceptions(); } }
~content_permission() { try { if (temp.size() > 1) { fs::remove_all(temp); } } catch (...) { cellGame.fatal("Failed to clean directory '%s'", temp); catch_all_exceptions(); } }
~content_permission() { try { if (!temp.empty()) { fs::remove_all(temp); } } catch (...) { cellGame.fatal("Failed to clean directory '/dev_hdd1/game/%s'", dir); catch_all_exceptions(); } }