impr: Display math evaluator errors again
This commit is contained in:
parent
75df797b41
commit
1df8d19399
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user