mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-03 17:56:12 -04:00
fix(dwarfs_main): don't throw in dtor
This commit is contained in:
parent
806f28ea92
commit
ae1358e978
@ -229,7 +229,11 @@ class dwarfs_analysis {
|
||||
|
||||
~dwarfs_analysis() {
|
||||
if (!path_.empty()) {
|
||||
write_analysis();
|
||||
try {
|
||||
write_analysis();
|
||||
} catch (std::exception const& e) {
|
||||
std::cerr << "Failed to write analysis: " << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user