Skip to content

Commit

Permalink
Improve errors thrown by simpleRunPython.
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 committed Sep 30, 2024
1 parent 3800fd6 commit cbade95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyodide/internal/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function simpleRunPython(
for (const line of err.split('\n')) {
console.warn(line);
}
throw new Error('Failed');
throw new Error('Failed to run Python code: ' + err);
}
return err;
}

0 comments on commit cbade95

Please sign in to comment.