mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-14 23:05:33 -04:00
chore(filesystem_writer): panic on exception thrown in dtor
This commit is contained in:
parent
446c0d443d
commit
ca35c7b929
@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
#include <dwarfs/block_compressor.h>
|
#include <dwarfs/block_compressor.h>
|
||||||
#include <dwarfs/checksum.h>
|
#include <dwarfs/checksum.h>
|
||||||
|
#include <dwarfs/error.h>
|
||||||
#include <dwarfs/logger.h>
|
#include <dwarfs/logger.h>
|
||||||
#include <dwarfs/thread_pool.h>
|
#include <dwarfs/thread_pool.h>
|
||||||
#include <dwarfs/util.h>
|
#include <dwarfs/util.h>
|
||||||
@ -664,6 +665,9 @@ filesystem_writer_<LoggerPolicy>::~filesystem_writer_() noexcept {
|
|||||||
flush();
|
flush();
|
||||||
}
|
}
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
DWARFS_PANIC(
|
||||||
|
fmt::format("exception thrown in filesystem_writer destructor: {}",
|
||||||
|
exception_str(std::current_exception())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user