Skip to content

Commit 2f0d425

Browse files
committed
fix err type
1 parent ba1bff2 commit 2f0d425

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/mathEval.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ async function mathEval(expr){
6262
resolve(result);
6363
}
6464
catch (e){
65-
Log.error("Error in MathEval: ", e);
65+
const err = e instanceof Error ? e : new Error(String(e));
66+
Log.error("Error in MathEval: ", err);
6667
resolve({
6768
result: null,
6869
error: "Failed to parse worker output",

0 commit comments

Comments
 (0)