File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ export function registerCommandWithErrorHandling(
49
49
const errorMessage = redactableError ( error ) `${
50
50
getErrorMessage ( e ) || e
51
51
} (${ commandId } )`;
52
- const errorStack = getErrorStack ( e ) ;
53
52
if ( e instanceof UserCancellationException ) {
54
53
// User has cancelled this action manually
55
54
if ( e . silent ) {
@@ -61,6 +60,7 @@ export function registerCommandWithErrorHandling(
61
60
}
62
61
} else {
63
62
// Include the full stack in the error log only.
63
+ const errorStack = getErrorStack ( e ) ;
64
64
const fullMessage = errorStack
65
65
? `${ errorMessage . fullMessage } \n${ errorStack } `
66
66
: errorMessage . fullMessage ;
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export async function showAndLogErrorMessage(
98
98
return internalShowAndLog (
99
99
dropLinesExceptInitial ( message ) ,
100
100
Window . showErrorMessage ,
101
- options ,
101
+ { fullMessage : message , ... options } ,
102
102
) ;
103
103
}
104
104
You can’t perform that action at this time.
0 commit comments