Use assert instead of exception on load error
This commit is contained in:
parent
bfa07cba69
commit
fa4a50b7b6
@ -87,7 +87,7 @@ optional<unique_ref<fspp::Node>> CryDevice::Load(const bf::path &path) {
|
||||
} else if (entry.type == fspp::Dir::EntryType::SYMLINK) {
|
||||
return optional<unique_ref<fspp::Node>>(make_unique_ref<CrySymlink>(this, std::move(*parent), entry.key));
|
||||
} else {
|
||||
throw FuseErrnoException(EIO);
|
||||
ASSERT(false, "Unknown entry type");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user