(error, ...rest)
| 15 | const { stderr } = pyScript.io; |
| 16 | |
| 17 | const cb = (error, ...rest) => { |
| 18 | notify(error.message || error); |
| 19 | // let other plugins or stderr hook, if any, do the rest |
| 20 | return stderr(error, ...rest); |
| 21 | }; |
| 22 | |
| 23 | // override it with our own logic |
| 24 | pyScript.io.stderr = pyScript.type === "py" ? cb : buffered(cb); |
no test coverage detected