[next] Cumulative pre-release patches (#1682)

This commit is contained in:
Andrea Giammarchi
2023-09-07 15:17:09 +02:00
committed by GitHub
parent d56eeb59ed
commit 0696e4682d
6 changed files with 86 additions and 32 deletions

View File

@@ -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