Skip to content

Commit 51627d9

Browse files
committed
Added some missing errors/events to log, tweaked some error copy in log
1 parent 0dd174d commit 51627d9

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

source/services/AcquireProductService.as

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ package services
357357
catch(error:Error)
358358
{
359359
this.cleanup();
360-
this.sdkManagerModel.log(COPY_ERROR);
360+
this.sdkManagerModel.log(COPY_ERROR + " " + error);
361361
this.dispatchWith(AcquireProductServiceEventType.ERROR, false, COPY_ERROR);
362362
return;
363363
}
@@ -389,14 +389,14 @@ package services
389389
private function loader_ioErrorHandler(event:IOErrorEvent):void
390390
{
391391
this.cleanup();
392-
this.sdkManagerModel.log(NOT_FOUND_ON_SERVER_ERROR);
392+
this.sdkManagerModel.log(NOT_FOUND_ON_SERVER_ERROR + " " + event);
393393
this.dispatchWith(AcquireProductServiceEventType.ERROR, false, NOT_FOUND_ON_SERVER_ERROR);
394394
}
395395

396396
private function loader_securityErrorHandler(event:SecurityErrorEvent):void
397397
{
398398
this.cleanup();
399-
this.sdkManagerModel.log(SECURITY_ERROR);
399+
this.sdkManagerModel.log(SECURITY_ERROR + " " + event);
400400
this.dispatchWith(AcquireProductServiceEventType.ERROR, false, SECURITY_ERROR);
401401
}
402402

source/services/LoadConfigurationService.as

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ package services
3434
public class LoadConfigurationService extends Actor implements ILoadConfigurationService
3535
{
3636
private static const LOAD_IN_PROGRESS_ERROR:String = "Loading the Feathers SDK configuration data failed. Loading is already in progress.";
37+
private static const FILE_NOT_FOUND_ERROR:String = "Loading the Feathers SDK configuration data failed. The file was not found on the server.";
38+
private static const SECURITY_ERROR:String = "Loading the Feathers SDK configuration data failed. Security sandbox error.";
3739
private static const PARSE_CONFIGURATION_ERROR:String = "Loading the Feathers SDK configuration data failed. Cannot parse configuration file.";
3840

3941
private static const LOAD_PROGRESS_LABEL:String = "Loading configuration data...";
@@ -89,7 +91,7 @@ package services
8991
}
9092
catch(error:Error)
9193
{
92-
this.sdkManagerModel.log("Error while parsing configuration file. " + error);
94+
this.sdkManagerModel.log(PARSE_CONFIGURATION_ERROR + " " + error);
9395
this.cleanup();
9496
this.dispatchWith(LoadConfigurationServiceEventType.ERROR, false, PARSE_CONFIGURATION_ERROR);
9597
return;
@@ -107,16 +109,16 @@ package services
107109

108110
private function loader_ioErrorHandler(event:IOErrorEvent):void
109111
{
110-
this.sdkManagerModel.log("Error while loading configuration file. " + event);
112+
this.sdkManagerModel.log(FILE_NOT_FOUND_ERROR + " " + event);
111113
this.cleanup();
112-
this.dispatchWith(LoadConfigurationServiceEventType.ERROR, false);
114+
this.dispatchWith(LoadConfigurationServiceEventType.ERROR, false, FILE_NOT_FOUND_ERROR);
113115
}
114116

115117
private function loader_securityErrorHandler(event:SecurityErrorEvent):void
116118
{
117-
this.sdkManagerModel.log("Error while loading configuration file. " + event);
119+
this.sdkManagerModel.log(SECURITY_ERROR + " " + event);
118120
this.cleanup();
119-
this.dispatchWith(LoadConfigurationServiceEventType.ERROR, false);
121+
this.dispatchWith(LoadConfigurationServiceEventType.ERROR, false, SECURITY_ERROR);
120122
}
121123
}
122124
}

0 commit comments

Comments
 (0)