Skip to content

Commit

Permalink
🐛 fix(provider): 优化VSCode提供器错误信息处理
Browse files Browse the repository at this point in the history
- 移除错误信息的额外格式化处理
- 直接抛出原始错误信息以保持异常追踪的完整性
  • Loading branch information
littleCareless committed Feb 11, 2025
1 parent 4972c4b commit 9ccb51a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ai/providers/VscodeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class VSCodeProvider implements AIProvider {
}
}

throw new Error(formatMessage("vscode.generation.failed", [message]));
throw new Error(message);
}
}
} catch (error) {
Expand Down

0 comments on commit 9ccb51a

Please sign in to comment.