Skip to content

Commit

Permalink
Merge pull request #2830 from cloudflare/dominik/improve-simple-run-p…
Browse files Browse the repository at this point in the history
…ython-errors

Improve errors thrown by simpleRunPython.
  • Loading branch information
dom96 authored Oct 2, 2024
2 parents 78774c8 + cbade95 commit 526a753
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 526a753

Please sign in to comment.