Fix order of args and stderr in error message
This commit is contained in:
Родитель
ebf06b9af6
Коммит
c5e9ef15f2
|
@ -65,9 +65,9 @@ export function registerCommandWithErrorHandling(
|
|||
void showAndLogWarningMessage(logger, errorMessage.fullMessage);
|
||||
}
|
||||
} else if (e instanceof CliError) {
|
||||
const fullMessage = `${e.commandDescription} failed with args:${EOL}${
|
||||
const fullMessage = `${e.commandDescription} failed with args:${EOL} ${e.commandArgs.join(" ")}${EOL}${
|
||||
e.stderr ?? e.cause
|
||||
} ${e.commandArgs.join(" ")}`;
|
||||
}`;
|
||||
void showAndLogExceptionWithTelemetry(logger, telemetry, errorMessage, {
|
||||
fullMessage,
|
||||
extraTelemetryProperties: {
|
||||
|
|
Загрузка…
Ссылка в новой задаче