File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ export class RunCommandBase implements ICommand {
30
30
}
31
31
32
32
const validatePlatformOutput = await this . $liveSyncCommandHelper . validatePlatform ( this . platform ) ;
33
- if ( validatePlatformOutput && validatePlatformOutput [ this . platform . toLowerCase ( ) ] ) {
33
+
34
+ if ( this . platform && validatePlatformOutput && validatePlatformOutput [ this . platform . toLowerCase ( ) ] ) {
34
35
const checkEnvironmentRequirementsOutput = validatePlatformOutput [ this . platform . toLowerCase ( ) ] . checkEnvironmentRequirementsOutput ;
35
36
this . liveSyncCommandHelperAdditionalOptions . syncToPreviewApp = checkEnvironmentRequirementsOutput && checkEnvironmentRequirementsOutput . selectedOption === "Sync to Playground" ;
36
37
}
Original file line number Diff line number Diff line change @@ -53,17 +53,17 @@ export class PreviewSdkService extends EventEmitter implements IPreviewSdkServic
53
53
private getCallbacks ( ) : SdkCallbacks {
54
54
return {
55
55
onLogSdkMessage : ( log : string ) => {
56
- this . $logger . trace ( "onLogSdkMessage!!! " , log ) ;
56
+ this . $logger . trace ( "Received onLogSdkMessage message: " , log ) ;
57
57
} ,
58
58
onConnectedDevicesChange : ( connectedDevices : ConnectedDevices ) => ( { } ) ,
59
59
onLogMessage : ( log : string , deviceName : string ) => {
60
60
this . $logger . info ( `LOG from device ${ deviceName } : ${ log } ` ) ;
61
61
} ,
62
62
onRestartMessage : ( ) => {
63
- console . log ( "ON RESTART MESSAGE!!! ") ;
63
+ this . $logger . trace ( "Received onRestartMessage event. ") ;
64
64
} ,
65
65
onUncaughtErrorMessage : ( ) => {
66
- this . $errors . failWithoutHelp ( "UncaughtErrorMessage while preview app!! " ) ;
66
+ this . $errors . failWithoutHelp ( "Error while communicating with preview app. " ) ;
67
67
} ,
68
68
onDeviceConnectedMessage : ( deviceConnectedMessage : DeviceConnectedMessage ) => ( { } ) ,
69
69
onDeviceConnected : ( device : Device ) => {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export class QrCodeTerminalService implements IQrCodeTerminalService {
9
9
try {
10
10
qrcode . generate ( url ) ;
11
11
} catch ( err ) {
12
- this . $logger . trace ( `Failed to generate QR code for ${ url } ` , err ) ;
12
+ this . $logger . info ( `Failed to generate QR code for ${ url } ` , err ) ;
13
13
}
14
14
}
15
15
}
You can’t perform that action at this time.
0 commit comments