mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: Bad optional access when inspectors.hexpat is missing (#761)
This commit is contained in:
committed by
GitHub
parent
3367237da3
commit
62eb0ccd1d
@@ -112,9 +112,13 @@ namespace hex::plugin::builtin {
|
||||
this->m_cachedData.push_back(cacheEntry);
|
||||
}
|
||||
} else {
|
||||
auto error = runtime.getError().value();
|
||||
const auto& error = runtime.getError();
|
||||
|
||||
log::error("Failed to execute inspectors.hexpat:\n {}", error.what());
|
||||
if (error.has_value()) {
|
||||
log::error("Failed to execute inspectors.hexpat:\n {}", error.value().what());
|
||||
} else {
|
||||
log::error("Failed to execute inspectors.hexpat");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user