ContentPack::scan unhandled exception fix
This commit is contained in:
parent
f8ca31e44d
commit
685aab6bb5
@ -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…
x
Reference in New Issue
Block a user