Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/plugin/python/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ export function processPythonDocs({
]);

if (out.error) {
throw new Error(out.error.message);
throw new Error(`Failed to spawn the generate_ast.py script: ${out.error.message}`);
}

if (out.status !== 0) {
throw new Error(
`The generate_ast.py script failed with exit code ${out.status}:\n${out.stderr.toString()}`,
);
}

const moduleShortcuts = JSON.parse(fs.readFileSync(moduleShortcutsPath, 'utf8')) as Record<
Expand Down
Loading