diff --git a/plugins/builtin/source/content/tools/math_eval.cpp b/plugins/builtin/source/content/tools/math_eval.cpp index 429b7207f..9960eec1b 100644 --- a/plugins/builtin/source/content/tools/math_eval.cpp +++ b/plugins/builtin/source/content/tools/math_eval.cpp @@ -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();