1
0
mirror of synced 2024-11-24 15:50:16 +01:00

impr: Display math evaluator errors again

This commit is contained in:
WerWolv 2023-11-16 21:23:38 +01:00
parent 75df797b41
commit 1df8d19399

View File

@ -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();