mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-18 00:40:30 -04:00
refactor(mkdwarfs): catch exceptions when building categorizers
This commit is contained in:
parent
1d426f3331
commit
2c9ea48bd9
@ -1240,10 +1240,15 @@ int mkdwarfs_main(int argc, sys_char** argv, iolayer const& iol) {
|
||||
options.inode.categorizer_mgr =
|
||||
std::make_shared<writer::categorizer_manager>(lgr, path);
|
||||
|
||||
try {
|
||||
for (auto const& name : categorizers) {
|
||||
options.inode.categorizer_mgr->add(
|
||||
catreg.create(lgr, name, vm, iol.file));
|
||||
}
|
||||
} catch (std::exception const& e) {
|
||||
LOG_ERROR << "could not create categorizer: " << e.what();
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
std::optional<reader::filesystem_v2> input_filesystem;
|
||||
|
Loading…
x
Reference in New Issue
Block a user