mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-12 05:49:56 -04:00
chore: replace rogue throw in mkdwarfs_main
This commit is contained in:
parent
33ea3bda7a
commit
14038dcfe7
@ -767,9 +767,9 @@ int mkdwarfs_main(int argc, sys_char** argv, iolayer const& iol) {
|
||||
ifs = iol.file->open_input(input_list_path, ec);
|
||||
|
||||
if (ec) {
|
||||
throw std::runtime_error(fmt::format("error opening file '{}': {}",
|
||||
input_list_path.string(),
|
||||
ec.message()));
|
||||
iol.err << "error opening file '" << input_list_path
|
||||
<< "': " << ec.message() << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
is = &ifs->is();
|
||||
|
Loading…
x
Reference in New Issue
Block a user