ContentPack::scan unhandled exception fix
This commit is contained in:
@@ -97,7 +97,12 @@ void ContentPack::scan(fs::path rootfolder,
|
|||||||
continue;
|
continue;
|
||||||
if (!is_pack(folder))
|
if (!is_pack(folder))
|
||||||
continue;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user