исправил тестовое состояние, исправил логику работы TDMA-морды, мелкие исправления в именовании параметров
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
#include <fstream>
|
||||
#include <utility>
|
||||
|
||||
static void loadFile(const std::string& path, std::vector<char>& content) {
|
||||
void http::resource::loadFile(const std::string& path, std::vector<char>& content) {
|
||||
std::ifstream is(path, std::ios::in | std::ios::binary);
|
||||
if (!is) {
|
||||
throw std::runtime_error("File not found");
|
||||
throw std::runtime_error("File not found " + path);
|
||||
}
|
||||
|
||||
content.clear();
|
||||
|
Reference in New Issue
Block a user