We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f239f2d commit b8a5a61Copy full SHA for b8a5a61
src/pyodide/internal/util.ts
@@ -65,7 +65,9 @@ export function simpleRunPython(
65
// PyRun_SimpleString will have written a Python traceback to stderr.
66
console.warn('Command failed:', code);
67
console.warn(cause);
68
- throw new PythonWorkersInternalError('Failed to run Python code');
+ throw new PythonWorkersInternalError(
69
+ 'Failed to run Python code:\n' + code + '\n\nError:\n' + cause
70
+ );
71
}
72
return cause;
73
0 commit comments