We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beaf740 commit e09e726Copy full SHA for e09e726
‎src/chat/PromptHandlers.ts
@@ -66,8 +66,14 @@ export class PromptHandlers {
66
}
67
} catch (err: any) {
68
Logger.getInstance();
69
- Logger.error(err!.error ? err!.error.message.toString() : err.toString());
+ const errorText = err!.error ? err!.error.message.toString() : err.toString();
70
+ Logger.error(errorText);
71
stream.markdown('\n\nI was not able to retrieve the data from SharePoint. Please check the logs in output window for more information.');
72
+
73
+ const markdownString = new vscode.MarkdownString();
74
+ markdownString.supportHtml = true;
75
+ markdownString.appendMarkdown(`<span style="color:#f00;">${errorText}</span>`);
76
+ stream.markdown(markdownString);
77
78
79
0 commit comments