Use assert instead of exception on load error

This commit is contained in:
Sebastian Messmer 2015-07-24 20:28:37 +02:00
parent bfa07cba69
commit fa4a50b7b6

View File

@ -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");
}
}