Skip to content

Commit

Permalink
Apply suggestions from code review by @sharon-wang
Browse files Browse the repository at this point in the history
Co-authored-by: sharon <[email protected]>
Signed-off-by: Julia Silge <[email protected]>
  • Loading branch information
juliasilge and sharon-wang authored Nov 27, 2024
1 parent 5bd50bc commit 3e9a26a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/positron-python/src/client/positron/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ export class PythonRuntimeSession implements positron.LanguageRuntimeSession, vs

const interpreter = interpreterService.getInterpreters().find((i) => i.id === extraData.pythonEnvironmentId);
if (!interpreter) {
const interpreterIds = interpreterService.getInterpreters().map((i) => `${i.id}`);
const interpreterIds = interpreterService.getInterpreters().map((i) => `\n- ${i.id}`);
throw new Error(
`Interpreter ${extraData.pythonEnvironmentId} not found in available Python interpreters: ${interpreterIds}`,
`Interpreter ${extraData.pythonEnvironmentId} (path: ${extraData.pythonPath}) not found in available Python interpreters: ${interpreterIds}`,
);
}
this.interpreter = interpreter;
Expand Down

0 comments on commit 3e9a26a

Please sign in to comment.