File tree 4 files changed +10
-2
lines changed
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 {
40
40
private $deviceAppDataFactory : Mobile . IDeviceAppDataFactory ,
41
41
private $projectChangesService : IProjectChangesService ,
42
42
private $emulatorPlatformService : IEmulatorPlatformService ,
43
- private $analyticsService : IAnalyticsService ) {
43
+ private $analyticsService : IAnalyticsService ,
44
+ private $messages : IMessages ,
45
+ private $staticConfig : Config . IStaticConfig ) {
44
46
super ( ) ;
45
47
}
46
48
@@ -504,7 +506,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
504
506
}
505
507
506
508
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 ( ) ) ;
508
510
}
509
511
}
510
512
}
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import { DevicePlatformsConstants } from "../lib/common/mobile/device-platforms-
26
26
import { XmlValidator } from "../lib/xml-validator" ;
27
27
import { LockFile } from "../lib/lockfile" ;
28
28
import ProjectChangesLib = require( "../lib/services/project-changes-service" ) ;
29
+ import { Messages } from "../lib/common/messages/messages" ;
29
30
30
31
import path = require( "path" ) ;
31
32
import temp = require( "temp" ) ;
@@ -82,6 +83,7 @@ function createTestInjector(): IInjector {
82
83
testInjector . register ( "analyticsService" , {
83
84
track : async ( ) => undefined
84
85
} ) ;
86
+ testInjector . register ( "messages" , Messages ) ;
85
87
86
88
return testInjector ;
87
89
}
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import { DevicePlatformsConstants } from "../lib/common/mobile/device-platforms-
21
21
import { XmlValidator } from "../lib/xml-validator" ;
22
22
import * as ChildProcessLib from "../lib/common/child-process" ;
23
23
import ProjectChangesLib = require( "../lib/services/project-changes-service" ) ;
24
+ import { Messages } from "../lib/common/messages/messages" ;
24
25
25
26
let isCommandExecuted = true ;
26
27
@@ -140,6 +141,7 @@ function createTestInjector() {
140
141
testInjector . register ( "analyticsService" , {
141
142
track : async ( ) => undefined
142
143
} ) ;
144
+ testInjector . register ( "messages" , Messages ) ;
143
145
144
146
return testInjector ;
145
147
}
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import { DevicePlatformsConstants } from "../lib/common/mobile/device-platforms-
19
19
import { XmlValidator } from "../lib/xml-validator" ;
20
20
import * as ChildProcessLib from "../lib/common/child-process" ;
21
21
import ProjectChangesLib = require( "../lib/services/project-changes-service" ) ;
22
+ import { Messages } from "../lib/common/messages/messages" ;
22
23
23
24
require ( "should" ) ;
24
25
let temp = require ( "temp" ) ;
@@ -80,6 +81,7 @@ function createTestInjector() {
80
81
testInjector . register ( "analyticsService" , {
81
82
track : async ( ) => undefined
82
83
} ) ;
84
+ testInjector . register ( "messages" , Messages ) ;
83
85
84
86
return testInjector ;
85
87
}
You can’t perform that action at this time.
0 commit comments