Skip to content

Commit eca318f

Browse files
committed
fix failure
1 parent 27cbd62 commit eca318f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/managers/common/nativePythonFinder.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,8 +892,12 @@ class NativePythonFinderImpl implements NativePythonFinder {
892892
operation: 'refresh',
893893
result: 'error',
894894
});
895-
this.outputChannel.error('[pet] JSON CLI fallback: Failed to parse find output:', stdout.slice(0, 500), ex);
896-
throw new Error('Failed to parse PET find --json output', { cause: ex });
895+
this.outputChannel.error(
896+
`[pet] JSON CLI fallback: Failed to parse find output (first 500 chars): ${stdout.slice(0, 500)}`,
897+
ex,
898+
);
899+
const cause = ex instanceof Error ? `: ${ex.message}` : '';
900+
throw new Error(`Failed to parse PET find --json output${cause}`);
897901
}
898902

899903
const nativeInfo: NativeInfo[] = [];

0 commit comments

Comments
 (0)