mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 11:15:36 -05:00
[next] Cumulative pre-release patches (#1682)
This commit is contained in:
committed by
GitHub
parent
d56eeb59ed
commit
0696e4682d
@@ -17,6 +17,11 @@ hooks.onBeforeRun.add(function override(pyScript) {
|
||||
// still let other plugins or PyScript itself do the rest
|
||||
return stderr(...args);
|
||||
};
|
||||
|
||||
// be sure uncaught Python errors are also visible
|
||||
addEventListener("error", ({ message }) => {
|
||||
if (message.startsWith("Uncaught PythonError")) notify(message);
|
||||
});
|
||||
});
|
||||
|
||||
// Error hook utilities
|
||||
|
||||
Reference in New Issue
Block a user