mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
ContentPack::scan unhandled exception fix
This commit is contained in:
parent
f8ca31e44d
commit
685aab6bb5
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue