v0.5.0
- feat: allows
fileandlineto be passed tofriendlyExplain()
eg.
// if the trace reports an unhelpful source location (eg. Pyodide runs code as "<exec>"), pass file explicitly to override what's parsed from the trace:
const result = friendlyExplain({
error: rawTracebackString,
code: editorCode,
runtime: "pyodide",
file: "main.py", // overrides the file from the trace
});
Full Changelog: v0.4.0...v0.5.0