File tree 1 file changed +2
-4
lines changed
lib/common/mobile/mobile-core
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,6 @@ export class DevicesService extends EventEmitter implements Mobile.IDevicesServi
128
128
const availableEmulatorsOutput = await this . getEmulatorImages ( { platform : options . platform } ) ;
129
129
const emulators = this . $emulatorHelper . getEmulatorsFromAvailableEmulatorsOutput ( availableEmulatorsOutput ) ;
130
130
const errors = this . $emulatorHelper . getErrorsFromAvailableEmulatorsOutput ( availableEmulatorsOutput ) ;
131
- if ( errors . length ) {
132
- return errors ;
133
- }
134
131
135
132
let emulator = null ;
136
133
if ( options . imageIdentifier ) {
@@ -140,7 +137,8 @@ export class DevicesService extends EventEmitter implements Mobile.IDevicesServi
140
137
}
141
138
142
139
if ( ! emulator ) {
143
- return [ `Unable to find emulator with provided options: ${ options } ` ] ;
140
+ const additionalErrors = errors && errors . length ? errors : [ ] ;
141
+ return [ `Unable to find emulator with provided options: ${ options } ` , ...additionalErrors ] ;
144
142
}
145
143
146
144
// emulator is already running
You can’t perform that action at this time.
0 commit comments