Skip to content

Commit

Permalink
Getting rid of duplicate gradle error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
arushikesarwani94 committed Jul 5, 2023
1 parent e8e7402 commit a41d67b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async function runOnAllDevices(

function createInstallError(error: Error & {stderr: string}) {
const stderr = (error.stderr || '').toString();
let message = error.message ?? '';
let message = '';
// Pass the error message from the command to stdout because we pipe it to
// parent process so it's not visible
logger.log(stderr);
Expand All @@ -148,8 +148,8 @@ function createInstallError(error: Error & {stderr: string}) {
}

return new CLIError(
`Failed to install the app. ${message}`,
message.length > 0 ? undefined : error,
`Failed to install the app.${message || ''}`,
error.message.length > 0 ? undefined : error,
);
}

Expand Down

0 comments on commit a41d67b

Please sign in to comment.