unmount if initilization fails
This commit is contained in:
@ -359,9 +359,15 @@ auto fuse_base::init_impl([[maybe_unused]] struct fuse_conn_info *conn,
|
||||
#else
|
||||
auto fuse_base::init_impl(struct fuse_conn_info *conn) -> void * {
|
||||
#endif
|
||||
constexpr const auto *function_name = static_cast<const char *>(__FUNCTION__);
|
||||
|
||||
utils::file::change_to_process_directory();
|
||||
if (not console_enabled_) {
|
||||
repertory::project_initialize();
|
||||
if (not repertory::project_initialize()) {
|
||||
utils::error::raise_error(function_name,
|
||||
"failed to initialize repertory");
|
||||
event_system::instance().raise<unmount_requested>();
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(__APPLE__)
|
||||
|
Reference in New Issue
Block a user