Skip to content

Commit a779e25

Browse files
committed
fix: std::system_error takes a string, not a path
1 parent 7b4b214 commit a779e25

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

projects/Converters/Minecraft/Java/src/alpha/world/AlphaWorldIo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace lodestone::minecraft::java::alpha::world {
2828
const common::conversion::io::options::OptionPresets::CommonFilesystemOptions &options)
2929
const {
3030
if (!std::filesystem::exists(options.path))
31-
throw std::system_error(std::make_error_code(std::errc::no_such_file_or_directory), options.path);
31+
throw std::system_error(std::make_error_code(std::errc::no_such_file_or_directory), options.path.string());
3232

3333
map_t<int, std::filesystem::path> dims;
3434
dims.emplace(0, options.path); // main dim

projects/Converters/Minecraft/Java/src/anvil/jungle/world/JungleAnvilWorldIo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace lodestone::minecraft::java::anvil::jungle::world {
3434
std::unique_ptr<level::world::World> JungleAnvilWorldIo::read(const common::conversion::io::options::OptionPresets::CommonFilesystemOptions &options)
3535
const {
3636
if (!std::filesystem::exists(options.path))
37-
throw std::system_error(std::make_error_code(std::errc::no_such_file_or_directory), options.path);
37+
throw std::system_error(std::make_error_code(std::errc::no_such_file_or_directory), options.path.string());
3838

3939
map_t<int, std::filesystem::path> dims;
4040
dims.emplace(0, options.path); // main dim

projects/Converters/Minecraft/Java/src/infdev/world/InfdevWorldIo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace lodestone::minecraft::java::infdev::world {
3131
const common::conversion::io::options::OptionPresets::CommonFilesystemOptions &options) const {
3232

3333
if (!std::filesystem::exists(options.path))
34-
throw std::system_error(std::make_error_code(std::errc::no_such_file_or_directory), options.path);
34+
throw std::system_error(std::make_error_code(std::errc::no_such_file_or_directory), options.path.string());
3535

3636
level::types::Vec3i spawnPos = {0, 64, 0};
3737
auto world = std::make_unique<level::world::World>();

projects/Converters/Minecraft/Java/src/mcregion/world/McRegionWorldIo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace lodestone::minecraft::java::mcregion::world {
3434
std::unique_ptr<lodestone::level::world::World> McRegionWorldIo::read(const common::conversion::io::options::OptionPresets::CommonFilesystemOptions &options)
3535
const {
3636
if (!std::filesystem::exists(options.path))
37-
throw std::system_error(std::make_error_code(std::errc::no_such_file_or_directory), options.path);
37+
throw std::system_error(std::make_error_code(std::errc::no_such_file_or_directory), options.path.string());
3838

3939
map_t<int, std::filesystem::path> dims;
4040
dims.emplace(0, options.path); // main dim

0 commit comments

Comments
 (0)