We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba1bff2 commit 2f0d425Copy full SHA for 2f0d425
src/util/mathEval.js
@@ -62,7 +62,8 @@ async function mathEval(expr){
62
resolve(result);
63
}
64
catch (e){
65
- Log.error("Error in MathEval: ", e);
+ const err = e instanceof Error ? e : new Error(String(e));
66
+ Log.error("Error in MathEval: ", err);
67
resolve({
68
result: null,
69
error: "Failed to parse worker output",
0 commit comments