From 1df8d1939969a0e9c1b3f573c7494be73220d471 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 16 Nov 2023 21:23:38 +0100 Subject: [PATCH] impr: Display math evaluator errors again --- plugins/builtin/source/content/tools/math_eval.cpp | 2 ++ 1 file changed, 2 insertions(+) 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();