mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
impr: Display math evaluator errors again
This commit is contained in:
@@ -322,6 +322,8 @@ namespace hex::plugin::builtin {
|
||||
if (result.has_value()) {
|
||||
mathHistory.push_back(result.value());
|
||||
lastMathError.clear();
|
||||
} else {
|
||||
lastMathError = mathEvaluator.getLastError().value_or("");
|
||||
}
|
||||
} catch (std::invalid_argument &e) {
|
||||
lastMathError = e.what();
|
||||
|
||||
Reference in New Issue
Block a user