mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-08 03:49:44 -04:00
chore(mkdwarfs): add file/line logging in case of exceptions
This commit is contained in:
parent
3d545e9882
commit
4abbdf09ab
@ -1281,10 +1281,10 @@ int mkdwarfs_main(int argc, sys_char** argv, iolayer const& iol) {
|
||||
options.inode.categorizer_mgr.reset();
|
||||
}
|
||||
} catch (runtime_error const& e) {
|
||||
LOG_ERROR << e.what();
|
||||
LOG_ERROR << e.what() << " [" << e.file() << ":" << e.line() << "]";
|
||||
return 1;
|
||||
} catch (system_error const& e) {
|
||||
LOG_ERROR << e.what();
|
||||
LOG_ERROR << e.what() << " [" << e.file() << ":" << e.line() << "]";
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user