mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-10-24 23:35:52 +00:00
chore: pass ZoneLoading error as result
This commit is contained in:
@@ -10,7 +10,7 @@ namespace
|
||||
ModManContext::Get().m_db_thread.Dispatch(
|
||||
[&wv, id, path]
|
||||
{
|
||||
const auto maybeZone = ModManContext::Get().m_fast_file.LoadFastFile(path);
|
||||
auto maybeZone = ModManContext::Get().m_fast_file.LoadFastFile(path);
|
||||
|
||||
if (maybeZone)
|
||||
{
|
||||
@@ -19,8 +19,8 @@ namespace
|
||||
}
|
||||
else
|
||||
{
|
||||
con::warn("Failed to load zone \"{}\"", path);
|
||||
ui::PromiseReject(wv, id, false);
|
||||
con::warn("Failed to load zone \"{}\": {}", path, maybeZone.error());
|
||||
ui::PromiseReject(wv, id, std::move(maybeZone).error());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user