Skip to content

Commit cbade95

Browse files
committed
Improve errors thrown by simpleRunPython.
1 parent 3800fd6 commit cbade95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pyodide/internal/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function simpleRunPython(
4242
for (const line of err.split('\n')) {
4343
console.warn(line);
4444
}
45-
throw new Error('Failed');
45+
throw new Error('Failed to run Python code: ' + err);
4646
}
4747
return err;
4848
}

0 commit comments

Comments
 (0)