File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed
Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ export class PlatformService extends EventEmitter implements IPlatformService {
4040 private $deviceAppDataFactory : Mobile . IDeviceAppDataFactory ,
4141 private $projectChangesService : IProjectChangesService ,
4242 private $emulatorPlatformService : IEmulatorPlatformService ,
43- private $analyticsService : IAnalyticsService ) {
43+ private $analyticsService : IAnalyticsService ,
44+ private $messages : IMessages ,
45+ private $staticConfig : Config . IStaticConfig ) {
4446 super ( ) ;
4547 }
4648
@@ -504,7 +506,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
504506 }
505507
506508 if ( found . length === 0 ) {
507- this . $errors . fail ( "Cannot find device with name: %s" , emulateOptions . device ) ;
509+ this . $errors . fail ( this . $messages . Devices . NotFoundDeviceByIdentifierErrorMessage , this . $staticConfig . CLIENT_NAME . toLowerCase ( ) ) ;
508510 }
509511 }
510512 }
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import { DevicePlatformsConstants } from "../lib/common/mobile/device-platforms-
2626import { XmlValidator } from "../lib/xml-validator" ;
2727import { LockFile } from "../lib/lockfile" ;
2828import ProjectChangesLib = require( "../lib/services/project-changes-service" ) ;
29+ import { Messages } from "../lib/common/messages/messages" ;
2930
3031import path = require( "path" ) ;
3132import temp = require( "temp" ) ;
@@ -82,6 +83,7 @@ function createTestInjector(): IInjector {
8283 testInjector . register ( "analyticsService" , {
8384 track : async ( ) => undefined
8485 } ) ;
86+ testInjector . register ( "messages" , Messages ) ;
8587
8688 return testInjector ;
8789}
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import { DevicePlatformsConstants } from "../lib/common/mobile/device-platforms-
2121import { XmlValidator } from "../lib/xml-validator" ;
2222import * as ChildProcessLib from "../lib/common/child-process" ;
2323import ProjectChangesLib = require( "../lib/services/project-changes-service" ) ;
24+ import { Messages } from "../lib/common/messages/messages" ;
2425
2526let isCommandExecuted = true ;
2627
@@ -140,6 +141,7 @@ function createTestInjector() {
140141 testInjector . register ( "analyticsService" , {
141142 track : async ( ) => undefined
142143 } ) ;
144+ testInjector . register ( "messages" , Messages ) ;
143145
144146 return testInjector ;
145147}
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import { DevicePlatformsConstants } from "../lib/common/mobile/device-platforms-
1919import { XmlValidator } from "../lib/xml-validator" ;
2020import * as ChildProcessLib from "../lib/common/child-process" ;
2121import ProjectChangesLib = require( "../lib/services/project-changes-service" ) ;
22+ import { Messages } from "../lib/common/messages/messages" ;
2223
2324require ( "should" ) ;
2425let temp = require ( "temp" ) ;
@@ -80,6 +81,7 @@ function createTestInjector() {
8081 testInjector . register ( "analyticsService" , {
8182 track : async ( ) => undefined
8283 } ) ;
84+ testInjector . register ( "messages" , Messages ) ;
8385
8486 return testInjector ;
8587}
You can’t perform that action at this time.
0 commit comments