Skip to content

Commit

Permalink
[DOP-4033]: Add empty string to join to remove commas
Browse files Browse the repository at this point in the history
  • Loading branch information
branberry committed Oct 17, 2023
1 parent a06ebe1 commit 99ad2e1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/commands/src/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,20 +120,20 @@ export async function executeAndPipeCommands(
console.error('Options provided: ', cmdToParams.options);

if (outputText) {
console.error('output', outputText.join());
console.error('output', outputText.join(''));
}

if (errorText) {
console.error('error', errorText.join());
console.error('error', errorText.join(''));
}

reject(new ExecuteCommandError('The command failed', { exitCode, outputText, errorText }));
return;
}

resolve({
outputText: outputText.join(),
errorText: errorText.join(),
outputText: outputText.join(''),
errorText: errorText.join(''),
});
});
});
Expand Down Expand Up @@ -186,20 +186,20 @@ export async function executeCliCommand({
console.error('Options provided: ', options);

if (outputText) {
console.error(outputText.join());
console.error(outputText.join(''));
}

if (errorText) {
console.error(errorText.join());
console.error(errorText.join(''));
}

reject(new ExecuteCommandError('The command failed', exitCode));
return;
}

resolve({
outputText: outputText.join(),
errorText: errorText.join(),
outputText: outputText.join(''),
errorText: errorText.join(''),
});
});
});
Expand Down

0 comments on commit 99ad2e1

Please sign in to comment.