File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/cli-platform-android/src/commands/runAndroid Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ async function runOnAllDevices(
122
122
123
123
function createInstallError ( error : Error & { stderr : string } ) {
124
124
const stderr = ( error . stderr || '' ) . toString ( ) ;
125
- let message = error . message ?? '' ;
125
+ let message = '' ;
126
126
// Pass the error message from the command to stdout because we pipe it to
127
127
// parent process so it's not visible
128
128
logger . log ( stderr ) ;
@@ -148,8 +148,8 @@ function createInstallError(error: Error & {stderr: string}) {
148
148
}
149
149
150
150
return new CLIError (
151
- `Failed to install the app. ${ message } ` ,
152
- message . length > 0 ? undefined : error ,
151
+ `Failed to install the app.${ message ? ' ' + message : '' } ` ,
152
+ error . message . length > 0 ? undefined : error ,
153
153
) ;
154
154
}
155
155
You can’t perform that action at this time.
0 commit comments