ContentPack::scan unhandled exception fix

This commit is contained in:
MihailRis 2024-02-03 07:09:13 +03:00
parent f8ca31e44d
commit 685aab6bb5

View File

@ -97,7 +97,12 @@ void ContentPack::scan(fs::path rootfolder,
continue;
if (!is_pack(folder))
continue;
packs.push_back(read(folder));
try {
packs.push_back(read(folder));
} catch (const contentpack_error& err) {
std::cerr << "package.json error at " << err.getFolder().u8string();
std::cerr << ": " << err.what() << std::endl;
}
}
}