Skip to content

Commit

Permalink
Added some missing errors/events to log, tweaked some error copy in log
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Jul 9, 2015
1 parent 0dd174d commit 51627d9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions source/services/AcquireProductService.as
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ package services
catch(error:Error)
{
this.cleanup();
this.sdkManagerModel.log(COPY_ERROR);
this.sdkManagerModel.log(COPY_ERROR + " " + error);
this.dispatchWith(AcquireProductServiceEventType.ERROR, false, COPY_ERROR);
return;
}
Expand Down Expand Up @@ -389,14 +389,14 @@ package services
private function loader_ioErrorHandler(event:IOErrorEvent):void
{
this.cleanup();
this.sdkManagerModel.log(NOT_FOUND_ON_SERVER_ERROR);
this.sdkManagerModel.log(NOT_FOUND_ON_SERVER_ERROR + " " + event);
this.dispatchWith(AcquireProductServiceEventType.ERROR, false, NOT_FOUND_ON_SERVER_ERROR);
}

private function loader_securityErrorHandler(event:SecurityErrorEvent):void
{
this.cleanup();
this.sdkManagerModel.log(SECURITY_ERROR);
this.sdkManagerModel.log(SECURITY_ERROR + " " + event);
this.dispatchWith(AcquireProductServiceEventType.ERROR, false, SECURITY_ERROR);
}

Expand Down
12 changes: 7 additions & 5 deletions source/services/LoadConfigurationService.as
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ package services
public class LoadConfigurationService extends Actor implements ILoadConfigurationService
{
private static const LOAD_IN_PROGRESS_ERROR:String = "Loading the Feathers SDK configuration data failed. Loading is already in progress.";
private static const FILE_NOT_FOUND_ERROR:String = "Loading the Feathers SDK configuration data failed. The file was not found on the server.";
private static const SECURITY_ERROR:String = "Loading the Feathers SDK configuration data failed. Security sandbox error.";
private static const PARSE_CONFIGURATION_ERROR:String = "Loading the Feathers SDK configuration data failed. Cannot parse configuration file.";

private static const LOAD_PROGRESS_LABEL:String = "Loading configuration data...";
Expand Down Expand Up @@ -89,7 +91,7 @@ package services
}
catch(error:Error)
{
this.sdkManagerModel.log("Error while parsing configuration file. " + error);
this.sdkManagerModel.log(PARSE_CONFIGURATION_ERROR + " " + error);
this.cleanup();
this.dispatchWith(LoadConfigurationServiceEventType.ERROR, false, PARSE_CONFIGURATION_ERROR);
return;
Expand All @@ -107,16 +109,16 @@ package services

private function loader_ioErrorHandler(event:IOErrorEvent):void
{
this.sdkManagerModel.log("Error while loading configuration file. " + event);
this.sdkManagerModel.log(FILE_NOT_FOUND_ERROR + " " + event);
this.cleanup();
this.dispatchWith(LoadConfigurationServiceEventType.ERROR, false);
this.dispatchWith(LoadConfigurationServiceEventType.ERROR, false, FILE_NOT_FOUND_ERROR);
}

private function loader_securityErrorHandler(event:SecurityErrorEvent):void
{
this.sdkManagerModel.log("Error while loading configuration file. " + event);
this.sdkManagerModel.log(SECURITY_ERROR + " " + event);
this.cleanup();
this.dispatchWith(LoadConfigurationServiceEventType.ERROR, false);
this.dispatchWith(LoadConfigurationServiceEventType.ERROR, false, SECURITY_ERROR);
}
}
}

0 comments on commit 51627d9

Please sign in to comment.