MCPcopy Index your code
hub / github.com/pyscript/pyscript / notifyAndThrow

Function notifyAndThrow

core/src/plugins/py-terminal.js:14–17  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

12// show the error on main and
13// stops the module from keep executing
14const notifyAndThrow = (message) => {
15 notify(message);
16 throw new Error(message);
17};
18
19const onceOnMain = ({ attributes: { worker } }) => !worker;
20

Callers 1

py-terminal.jsFile · 0.85

Calls 1

notifyFunction · 0.90

Tested by

no test coverage detected