Commit 6dedf988 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: code execution error handling

parent 4efb8638
......@@ -165,11 +165,16 @@
}
});
try {
result = pyodide.runPython(code);
console.log(result);
console.log(stdout);
console.log(stderr);
} catch (error) {
console.error('Error:', error);
stderr = error;
}
};
$: highlightedCode = code ? hljs.highlightAuto(code, hljs.getLanguage(lang)?.aliases).value : '';
......
Markdown is supported
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