Skip to content

Commit c5e9ef1

Browse files
committed
Fix order of args and stderr in error message
1 parent ebf06b9 commit c5e9ef1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/ql-vscode/src/common/vscode/commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ export function registerCommandWithErrorHandling(
6565
void showAndLogWarningMessage(logger, errorMessage.fullMessage);
6666
}
6767
} else if (e instanceof CliError) {
68-
const fullMessage = `${e.commandDescription} failed with args:${EOL}${
68+
const fullMessage = `${e.commandDescription} failed with args:${EOL} ${e.commandArgs.join(" ")}${EOL}${
6969
e.stderr ?? e.cause
70-
} ${e.commandArgs.join(" ")}`;
70+
}`;
7171
void showAndLogExceptionWithTelemetry(logger, telemetry, errorMessage, {
7272
fullMessage,
7373
extraTelemetryProperties: {

0 commit comments

Comments
 (0)