This commit is contained in:
Martin Brodbeck 2019-02-25 09:04:52 +01:00
parent 45fe7ea8bd
commit 2fb42d5365

View file

@ -1,8 +1,8 @@
#include "excelreader.h"
#include "utils.h"
#include <xlnt/xlnt.hpp>
#include <fstream>
#include <xlnt/xlnt.hpp>
namespace fs = std::filesystem;
@ -10,8 +10,8 @@ void ExcelReader::readSellersFromFile(const fs::path& filePath, Marketplace* mar
{
xlnt::workbook wb;
std::ifstream mystream(filePath, std::ios::binary);
if(!mystream.is_open()) {
throw std::runtime_error("Could not open ecxel file");
if (!mystream.is_open()) {
throw std::runtime_error("Could not open Excel file");
}
wb.load(mystream);