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 73b96b3 commit a021f59Copy full SHA for a021f59
1 file changed
src/trace-server.ts
@@ -56,7 +56,7 @@ export class TraceServer {
56
const message = prefix + ' stopping' + suffix + ' Resetting.';
57
treeKill(pid, error => {
58
if (error) {
59
- this.showError(message);
+ this.showErrorDetailed(message, error);
60
} else {
61
id = setTimeout(() => this.showError(message), millis);
62
}
@@ -182,6 +182,13 @@ export class TraceServer {
182
this.setStatusIfAvailable(up);
183
184
185
+ private showErrorDetailed(message: string, error: Error) {
186
+ const details = error.name + ' - ' + error.message;
187
+ vscode.window.showErrorMessage(details);
188
+ console.error(details);
189
+ this.showError(message);
190
+ }
191
+
192
private showStatus(started: boolean) {
193
if (started) {
194
vscode.window.showInformationMessage(prefix + ': Started.');
0 commit comments