Commit 33ca2874 authored by Romain Casati's avatar Romain Casati
Browse files

Better error handling in Basthon evaluation.

parent 8235a817
......@@ -252,13 +252,11 @@
dataEvent.result = result;
}
that.dispatchEvent("eval.finished", dataEvent);
}, function (args) {
const error = args[0];
const executionCount = args[1];
}, function (error) {
errCallback(error.toString());
let dataEvent = that.clone(data);
dataEvent.error = error;
dataEvent.execution_count = executionCount;
dataEvent.execution_count = pyodide.globals.basthon.kernel.execution_count();
that.dispatchEvent("eval.error", dataEvent);
});
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment